예제 #1
0
 def testHex_underscore_caps(self):
     self.assertEqual(IpxactInt("8'h0_F"), 15)
     self.assertEqual(IpxactInt("8'h0_f"), 15)
예제 #2
0
 def testHex_sized(self):
     self.assertEqual(IpxactInt("4'hF"), 15)
     self.assertEqual(IpxactInt("4'hf"), 15)
예제 #3
0
 def testHex_sized_caps(self):
     self.assertEqual(IpxactInt("4'HF"), 15)
     self.assertEqual(IpxactInt("4'Hf"), 15)
예제 #4
0
 def testDecimal_sized_caps(self):
     self.assertEqual(IpxactInt("8'D100"), 100)
예제 #5
0
 def testHex_nonstandard_0x(self):
     self.assertEqual(IpxactInt("0xF"), 15)
예제 #6
0
 def testDecimal_underscore(self):
     self.assertEqual(IpxactInt("1_0_0"), 100)
예제 #7
0
 def testDecimal_sized(self):
     self.assertEqual(IpxactInt("8'd100"), 100)
예제 #8
0
 def testOctal_underscore_caps(self):
     self.assertEqual(IpxactInt("6'O7_7"), 63)
예제 #9
0
 def testDecimal_num(self):
     self.assertEqual(IpxactInt("100"), 100)
예제 #10
0
 def testOctal_sized_caps(self):
     self.assertEqual(IpxactInt("6'O77"), 63)
예제 #11
0
 def testOctal_sized(self):
     self.assertEqual(IpxactInt("6'o77"), 63)
예제 #12
0
 def testBinary_underscore_caps(self):
     self.assertEqual(IpxactInt("8'B0000_1100"), 12)
예제 #13
0
 def testBinary_sized_caps(self):
     self.assertEqual(IpxactInt("4'B1100"), 12)
예제 #14
0
 def testBinary_sized(self):
     self.assertEqual(IpxactInt("4'b1100"), 12)