URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 161 |
Rev 168 |
Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.1 2001/07/20 00:46:03 lampret
|
|
// Development version of RTL. Libraries are missing.
|
|
//
|
//
|
//
|
|
|
`include "general.h"
|
`include "timescale.v"
|
|
`include "defines.v"
|
`define NO_UTI
|
`define NO_UTI
|
|
|
module dc_tag(clk, addr, we, datain, dataout, tp2w, tpdw);
|
module dc_tag(
|
|
// Clock and reset
|
|
clk, rst,
|
|
|
|
// Internal i/f
|
|
addr, we, datain, dataout
|
|
);
|
|
|
parameter dw = 19;
|
parameter dw = 19;
|
parameter aw = 9;
|
parameter aw = 9;
|
|
|
input [dw-1:0] datain;
|
//
|
output [dw-1:0] dataout;
|
// I/O
|
|
//
|
|
input clk;
|
|
input rst;
|
input [aw-1:0] addr;
|
input [aw-1:0] addr;
|
input we;
|
input we;
|
|
input [dw-1:0] datain;
|
|
output [dw-1:0] dataout;
|
|
|
input clk;
|
//
|
|
// Instantiation of TAG RAM block
|
input [`TP2W_WIDTH-1:0] tp2w;
|
//
|
input [31:0] tpdw;
|
generic_spram_512x19 dc_tag0(
|
|
|
wire high, low;
|
|
|
|
assign high = 1;
|
|
assign low = 0;
|
|
|
|
`ifdef NO_UTI
|
|
|
|
art_hssp_512x19 dc_tag0(
|
|
.q(dataout),
|
|
|
|
.clk(clk),
|
|
.cen(low),
|
|
.oen(low),
|
|
.wen(~we),
|
|
.a(addr),
|
|
.d(datain)
|
|
);
|
|
|
|
`else
|
|
|
|
art_hssp_512x19 dc_tag0(
|
|
.q(dataout),
|
|
|
|
.censq(),
|
|
.oensq(),
|
|
.wensq(),
|
|
.asq(),
|
|
.tq(),
|
|
|
|
.clk(clk),
|
.clk(clk),
|
.cen(low),
|
.rst(rst),
|
.oen(low),
|
.ce(1'b1),
|
.wen(~we),
|
.we(we),
|
.a(addr),
|
.oe(1'b1),
|
.d(datain),
|
.addr(addr),
|
.tis(tp2w[`TP2W_DCT_TIS]),
|
.di(datain),
|
.tms(tp2w[`TP2W_DCT_TMS]),
|
.do(dataout)
|
.tcen(tp2w[`TP2W_DCT_TCEN]), //normally high
|
|
.toen(tp2w[`TP2W_DCT_TOEN]),
|
|
.tqoen(tp2w[`TP2W_DCT_TQOEN]),
|
|
.twen(tp2w[`TP2W_DCT_TWEN]),
|
|
.ta(tp2w[`TP2W_DCT_TA]),
|
|
.td(tpdw[dw-1:0])
|
|
);
|
);
|
|
|
`endif
|
|
|
|
endmodule
|
endmodule
|
|
|
|
|
|
|
|
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.