Exemplo n.º 1
0
 def test_systemc(self):
     self.assert_serializes_as_file(Showcase0(), "showcase0.cpp")
Exemplo n.º 2
0
 def test_hwt(self):
     self.assert_serializes_as_file(Showcase0(), "showcase0.hwt.py")
Exemplo n.º 3
0
 def test_vhdl(self):
     self.assert_serializes_as_file(Showcase0(), "showcase0.vhd")
Exemplo n.º 4
0
 def test_verilog(self):
     self.assert_serializes_as_file(Showcase0(), "showcase0.v")
Exemplo n.º 5
0
 def test_hwt(self):
     s = toRtl(Showcase0(), serializer=HwtSerializer)
     showcase0_hwt = readContent("showcase0.hwt.py")
     self.assertEqual(s, showcase0_hwt)
Exemplo n.º 6
0
 def test_systemc(self):
     s = toRtl(Showcase0(), serializer=SystemCSerializer)
     showcase0_systemc = readContent("showcase0.cpp")
     self.assertEqual(s, showcase0_systemc)
Exemplo n.º 7
0
 def test_verilog(self):
     s = toRtl(Showcase0(), serializer=VerilogSerializer)
     showcase0_verilog = readContent("showcase0.v")
     self.assertEqual(s, showcase0_verilog)
Exemplo n.º 8
0
 def test_vhdl(self):
     s = toRtl(Showcase0(), serializer=VhdlSerializer)
     showcase0_vhdl = readContent("showcase0.vhd")
     self.assertEqual(s, showcase0_vhdl)
Exemplo n.º 9
0
 def test_Showcase0(self):
     u = Showcase0()
     convert(u)