Skip to content

Instantly share code, notes, and snippets.

View cfelton's full-sized avatar

Christopher Felton cfelton

View GitHub Profile
from random import randint
from myhdl import *
def switchchannels(mem2d, q, clk):
@always(clk.posedge)
def switch():
#print('switch')
#print(mem2d)
x = mem2d[0]