Ejemplo n.º 1
0
 def test_specified(self):
     a = pyrtl.Output()
     b = pyrtl.Output()
     self.assertIs(simulators._get_output(b, self.block), b)
Ejemplo n.º 2
0
 def test_autogen(self):
     a = pyrtl.Output()
     self.assertIs(simulators._get_output(None, self.block), a)
Ejemplo n.º 3
0
 def test_invalid_specification(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(1, self.block)
Ejemplo n.º 4
0
 def test_no_outputs(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(None, self.block)
Ejemplo n.º 5
0
 def test_too_many_outputs(self):
     a = pyrtl.Output()
     b = pyrtl.Output()
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(None, self.block)
Ejemplo n.º 6
0
 def test_specified(self):
     a = pyrtl.Output()
     b = pyrtl.Output()
     self.assertIs(simulators._get_output(b, self.block), b)
Ejemplo n.º 7
0
 def test_invalid_specification(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(1, self.block)
Ejemplo n.º 8
0
 def test_autogen(self):
     a = pyrtl.Output()
     self.assertIs(simulators._get_output(None, self.block), a)
Ejemplo n.º 9
0
 def test_too_many_outputs(self):
     a = pyrtl.Output()
     b = pyrtl.Output()
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(None, self.block)
Ejemplo n.º 10
0
 def test_no_outputs(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(None, self.block)