Page 1 of 1

Simulation models errors

Posted: Thu Jun 11, 2020 2:31 pm
by tnt
Someone might want to do a sanity check of the models because :

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;
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.

Re: Simulation models errors

Posted: Fri Jun 12, 2020 2:15 pm
by rakeshm
I have raised an issue on the same. We will review the cells_sim.v file and fix all these issues ASAP.