ecp5: Fixing miscellaneous sim model issues
authorDavid Shah <davey1576@gmail.com>
Mon, 16 Jul 2018 13:56:12 +0000 (15:56 +0200)
committerDavid Shah <davey1576@gmail.com>
Mon, 16 Jul 2018 13:56:12 +0000 (15:56 +0200)
Signed-off-by: David Shah <davey1576@gmail.com>
techlibs/ecp5/cells_sim.v

index cf1446a52d428f3b036ef82899c7eb450fa85e1a..1700694e8c412abca4e4b5a61ae5f64449b173e9 100644 (file)
@@ -232,13 +232,13 @@ module TRELLIS_FF(input CLK, LSR, CE, DI, output reg Q);
                        always @(posedge muxclk, posedge muxlsr)
                                if (muxlsr)
                                        Q <= srval;
-                               else
+                               else if (muxce)
                                        Q <= DI;
                end else begin
                        always @(posedge muxclk)
                                if (muxlsr)
                                        Q <= srval;
-                               else
+                               else if (muxce)
                                        Q <= DI;
                end
        endgenerate