OpenCores
URL https://opencores.org/ocsvn/amber/amber/trunk

Subversion Repositories amber

[/] [amber/] [trunk/] [hw/] [vlog/] [amber25/] [a25_wishbone_buf.v] - Diff between revs 35 and 36

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

Rev 35 Rev 36
Line 87... Line 87...
 
 
// ----------------------------------------------------
// ----------------------------------------------------
// Access Buffer
// Access Buffer
// ----------------------------------------------------
// ----------------------------------------------------
always @(posedge i_clk)
always @(posedge i_clk)
    if (!wbuf_used_r && i_req)
    if (i_req && !wbuf_used_r)
        begin
        begin
        wbuf_used_r     <= !i_accepted;
        wbuf_used_r     <= !i_accepted;
        wbuf_wdata_r    <= i_wdata;
        wbuf_wdata_r    <= i_wdata;
        wbuf_addr_r     <= i_addr;
        wbuf_addr_r     <= i_addr;
        wbuf_be_r       <= i_write ? i_be : 16'hffff;
        wbuf_be_r       <= i_write ? i_be : 16'hffff;
        wbuf_write_r    <= i_write;
        wbuf_write_r    <= i_write;
        end
        end
 
    else if ( i_req && wbuf_used_r && o_valid && i_accepted)
 
        begin
 
        wbuf_used_r     <= 1'd1;
 
        wbuf_wdata_r    <= i_wdata;
 
        wbuf_addr_r     <= i_addr;
 
        wbuf_be_r       <= i_write ? i_be : 16'hffff;
 
        wbuf_write_r    <= i_write;
 
        end
    else if (o_valid && i_accepted && wbuf_write_r)
    else if (o_valid && i_accepted && wbuf_write_r)
        wbuf_used_r     <= 1'd0;
        wbuf_used_r     <= 1'd0;
    else if (i_rdata_valid && !wbuf_write_r)
    else if (i_rdata_valid && !wbuf_write_r)
        wbuf_used_r     <= 1'd0;
        wbuf_used_r     <= 1'd0;
 
 

powered by: WebSVN 2.1.0

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