def test_same_lvl(sim_cls): ref = [[[0, 1]] for _ in range(8)] directed(drv(t=Queue[Uint[8]], seq=[[0, 1] for _ in range(8)]), f=qdeal(num=8, lvl=1), ref=ref) sim()
def test_random(sim_cls): skip_ifndef('RANDOM_TEST') seq = [[list(range(random.randint(1, 10))), list(range(random.randint(1, 5)))], [list(range(random.randint(1, 20))), list(range(random.randint(1, 7)))]] directed(drv(t=T_TRR_DIST, seq=seq), f=qdeal(sim_cls=sim_cls, num=2), ref=get_refs(seq)) sim()
def decoupled(din, *, lvl=1, num): res = din | qdeal(num=num, lvl=lvl) dout = [] for r in res: dout.append(r | decouple) return tuple(dout)
def test_synth_vivado(): qdeal(Intf(T_TRR_DIST), num=2)