예제 #1
0
 def test_basic_signed_lte(self):
     self.o <<= pyrtl.signed_le(self.r, self.c)
     #                       0  1  2  3 -4 -3 -2 -1
     self.check_trace('o     0  0  0  0  1  1  0  0  \n')
예제 #2
0
 def test_basic_signed_lte(self):
     self.o <<= pyrtl.signed_le(self.r, self.c)
     #                       0  1  2  3  4  5  6  7
     self.check_trace('o     1  1  1  1  1  1  0  0  \n')