util_wfifo: Update to implement flip flops
parent
5d1a0a14bf
commit
2744d0cb37
|
@ -125,10 +125,15 @@ module util_wfifo (
|
||||||
endgenerate
|
endgenerate
|
||||||
|
|
||||||
always @(posedge m_clk) begin
|
always @(posedge m_clk) begin
|
||||||
|
if (rstn == 1'b0) begin
|
||||||
|
m_wovf_m1 <= 1'b0;
|
||||||
|
m_wovf_m2 <= 1'b0;
|
||||||
|
end else begin
|
||||||
m_wovf_m1 <= m_wovf_s;
|
m_wovf_m1 <= m_wovf_s;
|
||||||
m_wovf_m2 <= m_wovf_m1;
|
m_wovf_m2 <= m_wovf_m1;
|
||||||
m_wovf <= m_wovf_m2;
|
m_wovf <= m_wovf_m2;
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
// read is non-destructive
|
// read is non-destructive
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue