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

Subversion Repositories vg_z80_sbc

[/] [vg_z80_sbc/] [trunk/] [rtl/] [wb_sram.v] - Diff between revs 17 and 19

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

Rev 17 Rev 19
Line 1... Line 1...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
////                                                              ////
////                                                              ////
////  $Id: wb_sram.v,v 1.3 2008-12-08 06:55:36 hharte Exp $       ////
////  $Id: wb_sram.v,v 1.4 2008-12-13 21:04:13 hharte Exp $       ////
////  wb_sram.v - SRAM with Wishbone Slave interface.             ////
////  wb_sram.v - SRAM with Wishbone Slave interface.             ////
////                                                              ////
////                                                              ////
////  This file is part of the Vector Graphic Z80 SBC Project     ////
////  This file is part of the Vector Graphic Z80 SBC Project     ////
////  http://www.opencores.org/projects/vg_z80_sbc/               ////
////  http://www.opencores.org/projects/vg_z80_sbc/               ////
////                                                              ////
////                                                              ////
Line 37... Line 37...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
module wb_sram
module wb_sram
#(
#(
    parameter mem_file_name = "none",
    parameter mem_file_name = "none",
    parameter adr_width = 14,
    parameter adr_width = 14,
    parameter dat_width = 8
    parameter dat_width = 8,
 
    parameter dw = 32 //number of data-bits
) (
) (
    // Generic synchronous single-port RAM interface
    // Generic synchronous single-port RAM interface
    clk_i, nrst_i, wb_adr_i, wb_dat_o, wb_dat_i, wb_sel_i, wb_we_i,
    clk_i, nrst_i, wb_adr_i, wb_dat_o, wb_dat_i, wb_sel_i, wb_we_i,
    wb_stb_i, wb_cyc_i, wb_ack_o
    wb_stb_i, wb_cyc_i, wb_ack_o
);
);
 
 
    //
    //
    // Default address and data buses width
    // Default address and data buses width
    //
    //
    parameter aw = 15; //number of address-bits
 
    parameter dw = 32; //number of data-bits
 
 
 
    //
    //
    // Generic synchronous single-port RAM interface
    // Generic synchronous single-port RAM interface
    //
    //
    input            clk_i;
    input            clk_i;
    input            nrst_i;
    input            nrst_i;
    input   [aw-1:0] wb_adr_i;
    input   [adr_width-1:0] wb_adr_i;
    output  [dw-1:0] wb_dat_o;
    output  [dw-1:0] wb_dat_o;
    input   [dw-1:0] wb_dat_i;
    input   [dw-1:0] wb_dat_i;
    input      [3:0] wb_sel_i;
    input      [3:0] wb_sel_i;
    input            wb_we_i;
    input            wb_we_i;
    input            wb_stb_i;
    input            wb_stb_i;

powered by: WebSVN 2.1.0

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