Пример #1
0
 def test_inspect(self):
     "Check inspect for valid data presentation"
     l = Reset(1)
     ins = l.inspect()
     self.assertTrue(ins['type'] == 'reset')
     self.assertTrue(ins['size'] == 1)
     self.assertTrue(ins['state'] == 1)
Пример #2
0
                                                                     (16, 24),
                                                                     (24, 32)])
    join = BusJoin([ss3_bus, ss2_bus, ss1_bus, ss0_bus], bj0)

    add.run()
    reg.run()
    regFile.run()
    m.run()
    alu.run()
    subset.run()
    join.run()

    while True:
        print('-----------------------------------------------------------')
        print(clk.inspect())
        print(rst.inspect())
        print(d_bus.inspect())
        print(reg.inspect())
        print(q_bus.inspect())
        print(f_bus.inspect())
        print(r_bus.inspect())
        print(c_bus.inspect())
        print(v_bus.inspect())
        print(n_bus.inspect())
        print(z_bus.inspect())

        print(ss0_bus.inspect())
        print(ss1_bus.inspect())
        print(ss2_bus.inspect())
        print(ss3_bus.inspect())
        print(bj0.inspect())