URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1052 |
Rev 1193 |
Line 44... |
Line 44... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.5 2002/09/16 02:51:23 lampret
|
|
// Delayed wb_err_o. Disabled wb_ack_o when wb_err_o is asserted.
|
|
//
|
// Revision 1.4 2002/08/18 19:55:30 lampret
|
// Revision 1.4 2002/08/18 19:55:30 lampret
|
// Added variable delay for SRAM.
|
// Added variable delay for SRAM.
|
//
|
//
|
// Revision 1.3 2002/08/14 06:24:43 lampret
|
// Revision 1.3 2002/08/14 06:24:43 lampret
|
// Fixed size of generic flash/sram to exactly 2MB
|
// Fixed size of generic flash/sram to exactly 2MB
|
Line 72... |
Line 75... |
|
|
// synopsys translate_off
|
// synopsys translate_off
|
`include "timescale.v"
|
`include "timescale.v"
|
// synopsys translate_on
|
// synopsys translate_on
|
|
|
`define SRAM_GENERIC
|
//
|
|
// Disable SRAM_GENERIC when using FPGAs
|
|
//
|
|
//`define SRAM_GENERIC
|
|
|
`ifdef SRAM_GENERIC
|
`ifdef SRAM_GENERIC
|
|
|
module sram_top (
|
module sram_top (
|
wb_clk_i, wb_rst_i,
|
wb_clk_i, wb_rst_i,
|
Line 341... |
Line 347... |
assign r_d_o = r_mux;
|
assign r_d_o = r_mux;
|
assign l_oe = wb_cyc_i & wb_stb_i & l0_wen;
|
assign l_oe = wb_cyc_i & wb_stb_i & l0_wen;
|
assign r_oe = wb_cyc_i & wb_stb_i & r0_wen;
|
assign r_oe = wb_cyc_i & wb_stb_i & r0_wen;
|
assign l_cen = ~(wb_cyc_i & wb_stb_i);
|
assign l_cen = ~(wb_cyc_i & wb_stb_i);
|
assign r_cen = l_cen;
|
assign r_cen = l_cen;
|
assign wb_ack_o = (wb_cyc_i & wb_stb_i & ~wb_err & ~wb_we_i) | ack_we;
|
assign wb_ack_o = (wb_cyc_i & wb_stb_i & ~wb_err_o & ~wb_we_i) | ack_we;
|
assign wb_err_o = wb_cyc_i & wb_stb_i & (|wb_adr_i[27:21]); // If Access to > 2MB (4-bit leading prefix ignored)
|
assign wb_err_o = wb_cyc_i & wb_stb_i & (|wb_adr_i[27:21]); // If Access to > 2MB (4-bit leading prefix ignored)
|
|
|
//
|
//
|
// RMW mux control
|
// RMW mux control
|
//
|
//
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.