Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.5 2002/08/18 19:54:47 lampret
|
|
// Added store buffer.
|
|
//
|
// Revision 1.4 2002/02/11 04:33:17 lampret
|
// Revision 1.4 2002/02/11 04:33:17 lampret
|
// Speed optimizations (removed duplicate _cyc_ and _stb_). Fixed D/IMMU cache-inhibit attr.
|
// Speed optimizations (removed duplicate _cyc_ and _stb_). Fixed D/IMMU cache-inhibit attr.
|
//
|
//
|
// Revision 1.3 2002/01/28 01:16:00 lampret
|
// Revision 1.3 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.
|
Line 99... |
Line 102... |
dc_en,
|
dc_en,
|
dcdmmu_adr_i, dcdmmu_cycstb_i, dcdmmu_ci_i,
|
dcdmmu_adr_i, dcdmmu_cycstb_i, dcdmmu_ci_i,
|
dcpu_we_i, dcpu_sel_i, dcpu_tag_i, dcpu_dat_i,
|
dcpu_we_i, dcpu_sel_i, dcpu_tag_i, dcpu_dat_i,
|
dcpu_dat_o, dcpu_ack_o, dcpu_rty_o, dcdmmu_err_o, dcdmmu_tag_o,
|
dcpu_dat_o, dcpu_ack_o, dcpu_rty_o, dcdmmu_err_o, dcdmmu_tag_o,
|
|
|
|
`ifdef OR1200_BIST
|
|
// RAM BIST
|
|
scanb_rst, scanb_si, scanb_so, scanb_en, scanb_clk,
|
|
`endif
|
|
|
// SPRs
|
// SPRs
|
spr_cs, spr_write, spr_dat_i
|
spr_cs, spr_write, spr_dat_i
|
);
|
);
|
|
|
parameter dw = `OR1200_OPERAND_WIDTH;
|
parameter dw = `OR1200_OPERAND_WIDTH;
|
Line 146... |
Line 154... |
output dcpu_ack_o;
|
output dcpu_ack_o;
|
output dcpu_rty_o;
|
output dcpu_rty_o;
|
output dcdmmu_err_o;
|
output dcdmmu_err_o;
|
output [3:0] dcdmmu_tag_o;
|
output [3:0] dcdmmu_tag_o;
|
|
|
|
`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 176... |
Line 195... |
wire dcfsm_first_hit_ack;
|
wire dcfsm_first_hit_ack;
|
wire dcfsm_first_miss_ack;
|
wire dcfsm_first_miss_ack;
|
wire dcfsm_first_miss_err;
|
wire dcfsm_first_miss_err;
|
wire dcfsm_burst;
|
wire dcfsm_burst;
|
wire dcfsm_tag_we;
|
wire dcfsm_tag_we;
|
|
`ifdef OR1200_BIST
|
|
//
|
|
// RAM BIST
|
|
//
|
|
wire scanb_ram_so;
|
|
wire scanb_tag_so;
|
|
wire scanb_ram_si = scanb_si;
|
|
wire scanb_tag_si = scanb_ram_so;
|
|
assign scanb_so = scanb_tag_so;
|
|
`endif
|
|
|
//
|
//
|
// Simple assignments
|
// Simple assignments
|
//
|
//
|
assign dcsb_adr_o = dc_addr;
|
assign dcsb_adr_o = dc_addr;
|
Line 268... |
Line 297... |
// Instantiation of DC main memory
|
// Instantiation of DC main memory
|
//
|
//
|
or1200_dc_ram or1200_dc_ram(
|
or1200_dc_ram or1200_dc_ram(
|
.clk(clk),
|
.clk(clk),
|
.rst(rst),
|
.rst(rst),
|
|
`ifdef OR1200_BIST
|
|
// RAM BIST
|
|
.scanb_rst(scanb_rst),
|
|
.scanb_si(scanb_ram_si),
|
|
.scanb_so(scanb_ram_so),
|
|
.scanb_en(scanb_en),
|
|
.scanb_clk(scanb_clk),
|
|
`endif
|
.addr(dc_addr[`OR1200_DCINDXH:2]),
|
.addr(dc_addr[`OR1200_DCINDXH:2]),
|
.en(dc_en),
|
.en(dc_en),
|
.we(dcram_we),
|
.we(dcram_we),
|
.datain(to_dcram),
|
.datain(to_dcram),
|
.dataout(from_dcram)
|
.dataout(from_dcram)
|
Line 281... |
Line 318... |
// Instantiation of DC TAG memory
|
// Instantiation of DC TAG memory
|
//
|
//
|
or1200_dc_tag or1200_dc_tag(
|
or1200_dc_tag or1200_dc_tag(
|
.clk(clk),
|
.clk(clk),
|
.rst(rst),
|
.rst(rst),
|
|
`ifdef OR1200_BIST
|
|
// RAM BIST
|
|
.scanb_rst(scanb_rst),
|
|
.scanb_si(scanb_tag_si),
|
|
.scanb_so(scanb_tag_so),
|
|
.scanb_en(scanb_en),
|
|
.scanb_clk(scanb_clk),
|
|
`endif
|
.addr(dctag_addr),
|
.addr(dctag_addr),
|
.en(dctag_en),
|
.en(dctag_en),
|
.we(dctag_we),
|
.we(dctag_we),
|
.datain({dc_addr[31:`OR1200_DCTAGL], dctag_v}),
|
.datain({dc_addr[31:`OR1200_DCTAGL], dctag_v}),
|
.tag_v(tag_v),
|
.tag_v(tag_v),
|