Simulation models errors

Post Reply
tnt
Posts: 16
Joined: Fri Jun 05, 2020 5:21 am

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.
rakeshm
Posts: 9
Joined: Wed Jun 03, 2020 4:59 am

I have raised an issue on the same. We will review the cells_sim.v file and fix all these issues ASAP.
Post Reply