OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1200/] [rtl/] [verilog/] [or1200_sb_fifo.v] - Diff between revs 258 and 358

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 258 Rev 358
Line 92... Line 92...
reg     [fw-1:0] wr_pntr;
reg     [fw-1:0] wr_pntr;
reg     [fw-1:0] rd_pntr;
reg     [fw-1:0] rd_pntr;
reg                     empty_o;
reg                     empty_o;
reg                     full_o;
reg                     full_o;
 
 
always @(posedge clk_i or posedge rst_i)
always @(posedge clk_i or `OR1200_RST_EVENT rst_i)
        if (rst_i) begin
        if (rst_i == `OR1200_RST_VALUE) begin
                full_o <=  1'b0;
                full_o <=  1'b0;
                empty_o <=  1'b1;
                empty_o <=  1'b1;
                wr_pntr <=  {fw{1'b0}};
                wr_pntr <=  {fw{1'b0}};
                rd_pntr <=  {fw{1'b0}};
                rd_pntr <=  {fw{1'b0}};
                cntr <=  {fw+2{1'b0}};
                cntr <=  {fw+2{1'b0}};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.