Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.3 2002/02/11 04:33:17 lampret
|
|
// Speed optimizations (removed duplicate _cyc_ and _stb_). Fixed D/IMMU cache-inhibit attr.
|
|
//
|
// Revision 1.2 2002/01/28 01:16:00 lampret
|
// Revision 1.2 2002/01/28 01:16:00 lampret
|
// Changed 'void' nop-ops instead of insn[0] to use insn[16]. Debug unit stalls the tick timer. Prepared new flag generation for add and and insns. Blocked DC/IC while they are turned off. Fixed I/D MMU SPRs layout except WAYs. TODO: smart IC invalidate, l.j 2 and TLB ways.
|
// Changed 'void' nop-ops instead of insn[0] to use insn[16]. Debug unit stalls the tick timer. Prepared new flag generation for add and and insns. Blocked DC/IC while they are turned off. Fixed I/D MMU SPRs layout except WAYs. TODO: smart IC invalidate, l.j 2 and TLB ways.
|
//
|
//
|
// Revision 1.1 2002/01/03 08:16:15 lampret
|
// Revision 1.1 2002/01/03 08:16:15 lampret
|
// New prefixes for RTL files, prefixed module names. Updated cache controllers and MMUs.
|
// New prefixes for RTL files, prefixed module names. Updated cache controllers and MMUs.
|
Line 75... |
Line 78... |
clk, rst,
|
clk, rst,
|
|
|
// I/F for translation
|
// I/F for translation
|
tlb_en, vaddr, hit, ppn, uwe, ure, swe, sre, ci,
|
tlb_en, vaddr, hit, ppn, uwe, ure, swe, sre, ci,
|
|
|
|
`ifdef OR1200_BIST
|
|
// RAM BIST
|
|
scanb_rst, scanb_si, scanb_so, scanb_en, scanb_clk,
|
|
`endif
|
|
|
// SPR access
|
// SPR access
|
spr_cs, spr_write, spr_addr, spr_dat_i, spr_dat_o
|
spr_cs, spr_write, spr_addr, spr_dat_i, spr_dat_o
|
);
|
);
|
|
|
parameter dw = `OR1200_OPERAND_WIDTH;
|
parameter dw = `OR1200_OPERAND_WIDTH;
|
Line 105... |
Line 113... |
output ure;
|
output ure;
|
output swe;
|
output swe;
|
output sre;
|
output sre;
|
output ci;
|
output ci;
|
|
|
|
`ifdef OR1200_BIST
|
|
//
|
|
// RAM BIST
|
|
//
|
|
input scanb_rst,
|
|
scanb_si,
|
|
scanb_en,
|
|
scanb_clk;
|
|
output scanb_so;
|
|
`endif
|
|
|
//
|
//
|
// SPR access
|
// SPR access
|
//
|
//
|
input spr_cs;
|
input spr_cs;
|
input spr_write;
|
input spr_write;
|
Line 128... |
Line 147... |
wire [`OR1200_DTLBMRW-1:0] tlb_mr_ram_out;
|
wire [`OR1200_DTLBMRW-1:0] tlb_mr_ram_out;
|
wire tlb_tr_en;
|
wire tlb_tr_en;
|
wire tlb_tr_we;
|
wire tlb_tr_we;
|
wire [`OR1200_DTLBTRW-1:0] tlb_tr_ram_in;
|
wire [`OR1200_DTLBTRW-1:0] tlb_tr_ram_in;
|
wire [`OR1200_DTLBTRW-1:0] tlb_tr_ram_out;
|
wire [`OR1200_DTLBTRW-1:0] tlb_tr_ram_out;
|
|
`ifdef OR1200_BIST
|
|
//
|
|
// RAM BIST
|
|
//
|
|
wire scanb_mr_so;
|
|
wire scanb_tr_so;
|
|
wire scanb_mr_si = scanb_si;
|
|
wire scanb_tr_si = scanb_mr_so;
|
|
assign scanb_so = scanb_tr_so;
|
|
`endif
|
|
|
//
|
//
|
// Implemented bits inside match and translate registers
|
// Implemented bits inside match and translate registers
|
//
|
//
|
// dtlbwYmrX: vpn 31-19 v 0
|
// dtlbwYmrX: vpn 31-19 v 0
|
Line 213... |
Line 242... |
// Instantiation of DTLB Match Registers
|
// Instantiation of DTLB Match Registers
|
//
|
//
|
or1200_spram_64x14 dtlb_mr_ram(
|
or1200_spram_64x14 dtlb_mr_ram(
|
.clk(clk),
|
.clk(clk),
|
.rst(rst),
|
.rst(rst),
|
|
`ifdef OR1200_BIST
|
|
// RAM BIST
|
|
.scanb_rst(scanb_rst),
|
|
.scanb_si(scanb_mr_si),
|
|
.scanb_so(scanb_mr_so),
|
|
.scanb_en(scanb_en),
|
|
.scanb_clk(scanb_clk),
|
|
`endif
|
.ce(tlb_mr_en),
|
.ce(tlb_mr_en),
|
.we(tlb_mr_we),
|
.we(tlb_mr_we),
|
.oe(1'b1),
|
.oe(1'b1),
|
.addr(tlb_index),
|
.addr(tlb_index),
|
.di(tlb_mr_ram_in),
|
.di(tlb_mr_ram_in),
|
Line 227... |
Line 264... |
// Instantiation of DTLB Translate Registers
|
// Instantiation of DTLB Translate Registers
|
//
|
//
|
or1200_spram_64x24 dtlb_tr_ram(
|
or1200_spram_64x24 dtlb_tr_ram(
|
.clk(clk),
|
.clk(clk),
|
.rst(rst),
|
.rst(rst),
|
|
`ifdef OR1200_BIST
|
|
// RAM BIST
|
|
.scanb_rst(scanb_rst),
|
|
.scanb_si(scanb_tr_si),
|
|
.scanb_so(scanb_tr_so),
|
|
.scanb_en(scanb_en),
|
|
.scanb_clk(scanb_clk),
|
|
`endif
|
.ce(tlb_tr_en),
|
.ce(tlb_tr_en),
|
.we(tlb_tr_we),
|
.we(tlb_tr_we),
|
.oe(1'b1),
|
.oe(1'b1),
|
.addr(tlb_index),
|
.addr(tlb_index),
|
.di(tlb_tr_ram_in),
|
.di(tlb_tr_ram_in),
|