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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel_21/] [or1200/] [rtl/] [verilog/] [or1200_spram_256x21.v] - Diff between revs 1171 and 1214

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

Rev 1171 Rev 1214
Line 61... Line 61...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.3.4.1  2003/07/08 15:36:37  lampret
 
// Added embedded memory QMEM.
 
//
// Revision 1.3  2003/04/07 01:19:07  lampret
// Revision 1.3  2003/04/07 01:19:07  lampret
// Added Altera LPM RAMs. Changed generic RAM output when OE inactive.
// Added Altera LPM RAMs. Changed generic RAM output when OE inactive.
//
//
// Revision 1.2  2002/10/17 20:04:40  lampret
// Revision 1.2  2002/10/17 20:04:40  lampret
// Added BIST scan. Special VS RAMs need to be used to implement BIST.
// Added BIST scan. Special VS RAMs need to be used to implement BIST.
Line 104... Line 107...
`include "or1200_defines.v"
`include "or1200_defines.v"
 
 
module or1200_spram_256x21(
module or1200_spram_256x21(
`ifdef OR1200_BIST
`ifdef OR1200_BIST
        // RAM BIST
        // RAM BIST
        scanb_rst, scanb_si, scanb_so, scanb_en, scanb_clk,
        mbist_si_i, mbist_so_o, mbist_ctrl_i,
`endif
`endif
        // Generic synchronous single-port RAM interface
        // Generic synchronous single-port RAM interface
        clk, rst, ce, we, oe, addr, di, do
        clk, rst, ce, we, oe, addr, di, do
);
);
 
 
Line 120... Line 123...
 
 
`ifdef OR1200_BIST
`ifdef OR1200_BIST
//
//
// RAM BIST
// RAM BIST
//
//
input                   scanb_rst,
input mbist_si_i;
                        scanb_si,
input [`OR1200_MBIST_CTRL_WIDTH - 1:0] mbist_ctrl_i;
                        scanb_en,
output mbist_so_o;
                        scanb_clk;
 
output                  scanb_so;
 
`endif
`endif
 
 
//
//
// Generic synchronous single-port RAM interface
// Generic synchronous single-port RAM interface
//
//
Line 144... Line 145...
//
//
// Internal wires and registers
// Internal wires and registers
//
//
wire    [10:0]           unconnected;
wire    [10:0]           unconnected;
 
 
 
`ifdef OR1200_ARTISAN_SSP
 
`else
`ifdef OR1200_VIRTUALSILICON_SSP
`ifdef OR1200_VIRTUALSILICON_SSP
`else
`else
`ifdef OR1200_BIST
`ifdef OR1200_BIST
assign scanb_so = scanb_si;
assign mbist_so_o = mbist_si_i;
 
`endif
`endif
`endif
`endif
`endif
 
 
`ifdef OR1200_ARTISAN_SSP
`ifdef OR1200_ARTISAN_SSP
 
 
Line 161... Line 165...
// Artisan Synchronous Single-Port RAM (ra1sh)
// Artisan Synchronous Single-Port RAM (ra1sh)
//
//
`ifdef UNUSED
`ifdef UNUSED
art_hssp_256x21 #(dw, 1<<aw, aw) artisan_ssp(
art_hssp_256x21 #(dw, 1<<aw, aw) artisan_ssp(
`else
`else
 
`ifdef OR1200_BIST
 
art_hssp_256x21_bist artisan_ssp(
 
`else
art_hssp_256x21 artisan_ssp(
art_hssp_256x21 artisan_ssp(
`endif
`endif
        .clk(clk),
`endif
        .cen(~ce),
`ifdef OR1200_BIST
        .wen(~we),
        // RAM BIST
        .a(addr),
        .mbist_si_i(mbist_si_i),
        .d(di),
        .mbist_so_o(mbist_so_o),
        .oen(~oe),
        .mbist_ctrl_i(mbist_ctrl_i),
        .q(do)
`endif
 
        .CLK(clk),
 
        .CEN(~ce),
 
        .WEN(~we),
 
        .A(addr),
 
        .D(di),
 
        .OEN(~oe),
 
        .Q(do)
);
);
 
 
`else
`else
 
 
`ifdef OR1200_AVANT_ATP
`ifdef OR1200_AVANT_ATP
Line 232... Line 246...
vs_hdsp_256x21 vs_ssp(
vs_hdsp_256x21 vs_ssp(
`endif
`endif
`endif
`endif
`ifdef OR1200_BIST
`ifdef OR1200_BIST
        // RAM BIST
        // RAM BIST
        .scanb_rst(scanb_rst),
        .mbist_si_i(mbist_si_i),
        .scanb_si(scanb_si),
        .mbist_so_o(mbist_so_o),
        .scanb_so(scanb_so),
        .mbist_ctrl_i(mbist_ctrl_i),
        .scanb_en(scanb_en),
 
        .scanb_clk(scanb_clk),
 
`endif
`endif
        .CK(clk),
        .CK(clk),
        .ADR(addr),
        .ADR(addr),
        .DI(di),
        .DI(di),
        .WEN(~we),
        .WEN(~we),
Line 315... Line 327...
defparam lpm_ram_dq_component.lpm_width = dw,
defparam lpm_ram_dq_component.lpm_width = dw,
        lpm_ram_dq_component.lpm_widthad = aw,
        lpm_ram_dq_component.lpm_widthad = aw,
        lpm_ram_dq_component.lpm_indata = "REGISTERED",
        lpm_ram_dq_component.lpm_indata = "REGISTERED",
        lpm_ram_dq_component.lpm_address_control = "REGISTERED",
        lpm_ram_dq_component.lpm_address_control = "REGISTERED",
        lpm_ram_dq_component.lpm_outdata = "UNREGISTERED",
        lpm_ram_dq_component.lpm_outdata = "UNREGISTERED",
        lpm_ram_dq_component.lpm_hint = "USE_EAB=OFF";
        lpm_ram_dq_component.lpm_hint = "USE_EAB=ON";
        // examplar attribute lpm_ram_dq_component NOOPT TRUE
        // examplar attribute lpm_ram_dq_component NOOPT TRUE
 
 
`else
`else
 
 
//
//

powered by: WebSVN 2.1.0

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