util_wfifo: Update to implement flip flops

main
Adrian Costina 2014-11-17 12:10:21 +02:00
parent 5d1a0a14bf
commit 2744d0cb37
1 changed files with 8 additions and 3 deletions

View File

@ -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