|
|
@@ -47,14 +47,10 @@ class NewCdcStructureTests(unittest.TestCase):
|
|
|
phy,
|
|
|
)
|
|
|
|
|
|
- def test_syn_creates_the_clock_without_attaching_an_sdc_script(self):
|
|
|
+ def test_syn_loads_the_clock_constraint_once_for_the_exported_db(self):
|
|
|
syn = (ROOT / "td/syn/prod2u_p4_normal_v3.tcl").read_text(encoding="ascii")
|
|
|
- self.assertNotIn("read_sdc", syn)
|
|
|
- self.assertIn(
|
|
|
- "create_clock -name sys_clk -period 40 -waveform {0 20} [get_ports {sys_clk}]",
|
|
|
- syn,
|
|
|
- )
|
|
|
- self.assertLess(syn.index("optimize_rtl"), syn.index("create_clock"))
|
|
|
+ self.assertIn("read_sdc {constraints/prod2u_p4_normal_v3.sdc}", syn)
|
|
|
+ self.assertNotIn("create_clock -name sys_clk", syn)
|
|
|
|
|
|
def test_project_adapter_receives_compile_time_project_counts(self):
|
|
|
adapter = (ROOT / "src/project/project_adapter.v").read_text(encoding="utf-8")
|