[Architecture] Patch DFF Verilog HDL
This commit is contained in:
parent
092ada39f4
commit
645db17168
|
@ -13,6 +13,7 @@ input CK, // Clock Input
|
||||||
/* Local ports follow */
|
/* Local ports follow */
|
||||||
input D, // Data Input
|
input D, // Data Input
|
||||||
output Q // Q output
|
output Q // Q output
|
||||||
|
output QB // QB output
|
||||||
);
|
);
|
||||||
//------------Internal Variables--------
|
//------------Internal Variables--------
|
||||||
reg q_reg;
|
reg q_reg;
|
||||||
|
@ -27,7 +28,13 @@ end else if (WE) begin
|
||||||
q_reg <= D;
|
q_reg <= D;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
`ifndef ENABLE_FORMAL_VERIFICATION
|
||||||
// Wire q_reg to Q
|
// Wire q_reg to Q
|
||||||
assign Q = q_reg;
|
assign Q = q_reg;
|
||||||
|
assign QB = ~q_reg;
|
||||||
|
`else
|
||||||
|
assign Q = 1'bZ;
|
||||||
|
assign QB = !Q;
|
||||||
|
`endif
|
||||||
|
|
||||||
endmodule //End Of Module
|
endmodule //End Of Module
|
||||||
|
|
Loading…
Reference in New Issue