Exemple #1
0
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()
Exemple #2
0
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()
Exemple #3
0
 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)
Exemple #4
0
def test_synth_vivado():
    qdeal(Intf(T_TRR_DIST), num=2)