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