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

Subversion Repositories or1k

[/] [or1k/] [branches/] [mp3_stable/] [or1200/] [rtl/] [verilog/] [ic_ram.v] - Diff between revs 168 and 203

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

Rev 168 Rev 203
Line 42... Line 42...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.3  2001/08/09 13:39:33  lampret
 
// Major clean-up.
 
//
// Revision 1.2  2001/07/22 03:31:54  lampret
// Revision 1.2  2001/07/22 03:31:54  lampret
// Fixed RAM's oen bug. Cache bypass under development.
// Fixed RAM's oen bug. Cache bypass under development.
//
//
// Revision 1.1  2001/07/20 00:46:03  lampret
// Revision 1.1  2001/07/20 00:46:03  lampret
// Development version of RTL. Libraries are missing.
// Development version of RTL. Libraries are missing.
//
//
//
//
 
 
 
// synopsys translate_off
`include "timescale.v"
`include "timescale.v"
 
// synopsys translate_on
`include "defines.v"
`include "defines.v"
 
 
module ic_ram(
module ic_ram(
        // Clock and reset
        // Clock and reset
        clk, rst,
        clk, rst,
 
 
        // Internal i/f
        // Internal i/f
        addr, we, datain, dataout
        addr, en, we, datain, dataout
);
);
 
 
parameter dw = `OPERAND_WIDTH;
parameter dw = `OPERAND_WIDTH;
parameter aw = `ICINDX;
parameter aw = `ICINDX;
 
 
Line 70... Line 75...
// I/O
// I/O
//
//
input                           clk;
input                           clk;
input                           rst;
input                           rst;
input   [aw-1:0]         addr;
input   [aw-1:0]         addr;
 
input                           en;
input   [3:0]                    we;
input   [3:0]                    we;
input   [dw-1:0]         datain;
input   [dw-1:0]         datain;
output  [dw-1:0]         dataout;
output  [dw-1:0]         dataout;
 
 
 
`ifdef OR1200_NO_IC
 
 
 
//
 
// Insn cache not implemented
 
//
 
assign dataout = {dw{1'b0}};
 
 
 
`else
 
 
//
//
// Instantiation of 2048x32 RAM block
// Instantiation of 2048x32 RAM block
//
//
generic_spram_2048x32 ic_ram0(
generic_spram_2048x32 ic_ram0(
        .clk(clk),
        .clk(clk),
        .rst(rst),
        .rst(rst),
        .ce(1'b1),
        .ce(en),
        .we(we[0]),
        .we(we[0]),
        .oe(1'b1),
        .oe(1'b1),
        .addr(addr),
        .addr(addr),
        .di(datain),
        .di(datain),
        .do(dataout)
        .do(dataout)
);
);
 
 
 
`endif
 
 
endmodule
endmodule
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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