コード例 #1
0
def test_socket_cosim_rand():
    skip_ifndef('SIM_SOCKET_TEST', 'RANDOM_TEST')

    din_num = 3

    cons = []
    for i in range(din_num):
        cons.append(randomize(T_DIN, f'din{i}', eot_cons=['data_size == 10']))

    stim = []
    for i in range(din_num):
        stim.append(drv(t=T_DIN, seq=rand_seq(f'din{i}', 30)))

    verif(*stim,
          f=qinterlace(sim_cls=partial(SimSocket, run=True)),
          ref=qinterlace(name='ref_model'))

    sim(extens=[partial(SVRandSocket, cons=cons)])
コード例 #2
0
def test_random(sim_cls):
    skip_ifndef('RANDOM_TEST')

    din_num = 3

    stim = []
    for _ in range(din_num):
        stim.append(
            drv(t=T_DIN,
                seq=[
                    list(range(random.randint(1, 10))),
                    list(range(random.randint(1, 10)))
                ]))

    verif(*stim,
          f=qinterlace(sim_cls=sim_cls),
          ref=qinterlace(name='ref_model'))

    sim()
コード例 #3
0
def test_trr_vivado():
    qinterlace(Intf(T_DIN), Intf(T_DIN), Intf(T_DIN))
コード例 #4
0
def test_formal():
    qinterlace(Intf(T_DIN), Intf(T_DIN), Intf(T_DIN))
コード例 #5
0
def test_trr_yosys():
    qinterlace(Intf(T_DIN), Intf(T_DIN), Intf(T_DIN))