Open avelure opened 3 weeks ago
The test case passes now but I don't think it'll help you much as there is currently the a delta cycle delay before the update to the gated clock, as if you'd written it in VHDL. The problem is NVC doesn't currently implement Verilog's scheduling model where a blocking assignment should cause sensitive processes to be scheduled immediately in the current scheduling region.
We are trying to simulate some simple clockgating blocks that are in verilog. The rest of the design is vhdl. These seem trivial to convert to VHDL, but the clockgating introduces deltacycle delays on the gated clock. The design has some signals passing from the non-gated to the gated domain clock, which would skip a cycle when we converted the module to vhdl. At least with modelsim the CLK and GCLK would allign on the same deltacycle.
commenting out the
clk_gate_n
instanciation gives