Esempio n. 1
0
 def test_specified(self):
     a = pyrtl.Output()
     b = pyrtl.Output()
     self.assertIs(simulators._get_output(b, self.block), b)
Esempio n. 2
0
 def test_autogen(self):
     a = pyrtl.Output()
     self.assertIs(simulators._get_output(None, self.block), a)
Esempio n. 3
0
 def test_invalid_specification(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(1, self.block)
Esempio n. 4
0
 def test_no_outputs(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(None, self.block)
Esempio 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)
Esempio n. 6
0
 def test_specified(self):
     a = pyrtl.Output()
     b = pyrtl.Output()
     self.assertIs(simulators._get_output(b, self.block), b)
Esempio n. 7
0
 def test_invalid_specification(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(1, self.block)
Esempio n. 8
0
 def test_autogen(self):
     a = pyrtl.Output()
     self.assertIs(simulators._get_output(None, self.block), a)
Esempio 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)
Esempio n. 10
0
 def test_no_outputs(self):
     with self.assertRaises(pyrtl.PyrtlError):
         simulators._get_output(None, self.block)