def test_systemc(self): self.assert_serializes_as_file(Showcase0(), "showcase0.cpp")
def test_hwt(self): self.assert_serializes_as_file(Showcase0(), "showcase0.hwt.py")
def test_vhdl(self): self.assert_serializes_as_file(Showcase0(), "showcase0.vhd")
def test_verilog(self): self.assert_serializes_as_file(Showcase0(), "showcase0.v")
def test_hwt(self): s = toRtl(Showcase0(), serializer=HwtSerializer) showcase0_hwt = readContent("showcase0.hwt.py") self.assertEqual(s, showcase0_hwt)
def test_systemc(self): s = toRtl(Showcase0(), serializer=SystemCSerializer) showcase0_systemc = readContent("showcase0.cpp") self.assertEqual(s, showcase0_systemc)
def test_verilog(self): s = toRtl(Showcase0(), serializer=VerilogSerializer) showcase0_verilog = readContent("showcase0.v") self.assertEqual(s, showcase0_verilog)
def test_vhdl(self): s = toRtl(Showcase0(), serializer=VhdlSerializer) showcase0_vhdl = readContent("showcase0.vhd") self.assertEqual(s, showcase0_vhdl)
def test_Showcase0(self): u = Showcase0() convert(u)