Simulation models errors
Posted: Thu Jun 11, 2020 2:31 pm
Someone might want to do a sanity check of the models because :
For instance for dffpc :
One of the `posedge CLK` should be `posedge CLR` obviously.
Also, the dffepc is doing a preset when CLR is high and missing the check on PRE alltogether.
For instance for dffpc :
Code: Select all
always @(posedge CLK or posedge CLK or posedge PRE)
if (CLR)
Q <= 1'b0;
else if (PRE)
Q <= 1'b1;
else
Q <= D;
Also, the dffepc is doing a preset when CLR is high and missing the check on PRE alltogether.