Exemplo n.º 1
0
 def test_sorted(self):
     a = pyrtl.Input(name='a')
     b = pyrtl.Input(name='b')
     self.assertEquals(simulators._get_inputs(None, self.block), [a, b])
Exemplo n.º 2
0
 def test_specified(self):
     a = pyrtl.Input()
     b = pyrtl.Input()
     self.assertEquals(simulators._get_inputs([a], self.block), [a])
Exemplo n.º 3
0
 def test_autogen(self):
     a = pyrtl.Input()
     self.assertEquals(simulators._get_inputs(None, self.block), [a])
Exemplo n.º 4
0
 def test_sorted(self):
     a = pyrtl.Input(name='a')
     b = pyrtl.Input(name='b')
     self.assertEquals(simulators._get_inputs(None, self.block), [a, b])
Exemplo n.º 5
0
 def test_specified(self):
     a = pyrtl.Input()
     b = pyrtl.Input()
     self.assertEquals(simulators._get_inputs([a], self.block), [a])
Exemplo n.º 6
0
 def test_autogen(self):
     a = pyrtl.Input()
     self.assertEquals(simulators._get_inputs(None, self.block), [a])