diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-12-04 20:33:24 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-12-04 20:33:24 -0800 |
commit | 258a34e6f148928e80f13416b28d6bba6988c78a (patch) | |
tree | b141e75cddb3470809d12bdddd2f8813a0a46fe5 /techlibs | |
parent | c8a7bc5d3a0a69e942a1c9ce84c1dbf0c32e49e4 (diff) | |
download | yosys-258a34e6f148928e80f13416b28d6bba6988c78a.tar.gz yosys-258a34e6f148928e80f13416b28d6bba6988c78a.tar.bz2 yosys-258a34e6f148928e80f13416b28d6bba6988c78a.zip |
Oh deary me
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/xilinx/cells_sim.v | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/techlibs/xilinx/cells_sim.v b/techlibs/xilinx/cells_sim.v index d845b324f..2fda3b8fd 100644 --- a/techlibs/xilinx/cells_sim.v +++ b/techlibs/xilinx/cells_sim.v @@ -378,10 +378,10 @@ module FDPE ( parameter [0:0] IS_PRE_INVERTED = 1'b0; initial Q <= INIT; generate case ({|IS_C_INVERTED, |IS_PRE_INVERTED}) - 2'b00: always @(posedge C, posedge PRE) if ( PRE) Q <= 1'b1; else Q <= Q ; - 2'b01: always @(posedge C, negedge PRE) if (!PRE) Q <= 1'b1; else Q <= Q ; - 2'b10: always @(negedge C, posedge PRE) if ( PRE) Q <= 1'b1; else Q <= Q ; - 2'b11: always @(negedge C, negedge PRE) if (!PRE) Q <= 1'b1; else Q <= Q ; + 2'b00: always @(posedge C, posedge PRE) if ( PRE) Q <= 1'b1; else if (CE) Q <= D ^ IS_D_INVERTED; + 2'b01: always @(posedge C, negedge PRE) if (!PRE) Q <= 1'b1; else if (CE) Q <= D ^ IS_D_INVERTED; + 2'b10: always @(negedge C, posedge PRE) if ( PRE) Q <= 1'b1; else if (CE) Q <= D ^ IS_D_INVERTED; + 2'b11: always @(negedge C, negedge PRE) if (!PRE) Q <= 1'b1; else if (CE) Q <= D ^ IS_D_INVERTED; endcase endgenerate endmodule |