diff --git a/techlibs/microchip/cells_sim.v b/techlibs/microchip/cells_sim.v index de4038e09..f3b55fe4c 100644 --- a/techlibs/microchip/cells_sim.v +++ b/techlibs/microchip/cells_sim.v @@ -164,22 +164,18 @@ module MICROCHIP_SYNC_SET_DFF( input CLK, input Set, input En, - output Q); + output reg Q); parameter [0:0] INIT = 1'b0; // unused - reg q_ff; - always @(posedge CLK) begin if (En == 1) begin if (Set == 0) - q_ff <= 1; + Q <= 1; else - q_ff <= D; + Q <= D; end end - assign Q = q_ff; - specify $setup(D , posedge CLK &&& En && Set, 0); // neg setup not supported? $setup(En, posedge CLK, 109); @@ -195,22 +191,18 @@ module MICROCHIP_SYNC_RESET_DFF( input CLK, input Reset, input En, - output Q); + output reg Q); parameter [0:0] INIT = 1'b0; // unused - reg q_ff; - always @(posedge CLK) begin if (En == 1) begin if (Reset == 0) - q_ff <= 0; + Q <= 0; else - q_ff <= D; + Q <= D; end end - assign Q = q_ff; - specify $setup(D , posedge CLK &&& En && Reset, 0); // neg setup not supported? $setup(En, posedge CLK, 109);