Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.2 2002/01/18 07:56:00 lampret
|
|
// No more low/high priority interrupts (PICPR removed). Added tick timer exception. Added exception prefix (SR[EPH]). Fixed single-step bug whenreading NPC.
|
|
//
|
// 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.
|
//
|
//
|
// Revision 1.13 2001/11/23 08:38:51 lampret
|
// Revision 1.13 2001/11/23 08:38:51 lampret
|
// Changed DSR/DRR behavior and exception detection.
|
// Changed DSR/DRR behavior and exception detection.
|
Line 276... |
Line 279... |
wire icpu_we_cpu;
|
wire icpu_we_cpu;
|
wire [3:0] icpu_sel_cpu;
|
wire [3:0] icpu_sel_cpu;
|
wire [3:0] icpu_tag_cpu;
|
wire [3:0] icpu_tag_cpu;
|
wire [31:0] icpu_dat_ic;
|
wire [31:0] icpu_dat_ic;
|
wire icpu_ack_ic;
|
wire icpu_ack_ic;
|
wire icpu_rty_ic;
|
|
wire [31:0] icpu_adr_immu;
|
wire [31:0] icpu_adr_immu;
|
wire icpu_err_immu;
|
wire icpu_err_immu;
|
wire [3:0] icpu_tag_immu;
|
wire [3:0] icpu_tag_immu;
|
|
|
//
|
//
|
// IMMU and IC
|
// IMMU and IC
|
//
|
//
|
wire [aw-1:0] icimmu_adr_immu;
|
wire [aw-1:0] icimmu_adr_immu;
|
|
wire icimmu_rty_ic;
|
wire icimmu_err_ic;
|
wire icimmu_err_ic;
|
wire [3:0] icimmu_tag_ic;
|
wire [3:0] icimmu_tag_ic;
|
wire icimmu_cyc_immu;
|
wire icimmu_cyc_immu;
|
wire icimmu_stb_immu;
|
wire icimmu_stb_immu;
|
wire icimmu_ci_immu;
|
wire icimmu_ci_immu;
|
Line 417... |
Line 420... |
.icpu_adr_i(icpu_adr_cpu),
|
.icpu_adr_i(icpu_adr_cpu),
|
.icpu_cyc_i(icpu_cyc_cpu),
|
.icpu_cyc_i(icpu_cyc_cpu),
|
.icpu_stb_i(icpu_stb_cpu),
|
.icpu_stb_i(icpu_stb_cpu),
|
.icpu_adr_o(icpu_adr_immu),
|
.icpu_adr_o(icpu_adr_immu),
|
.icpu_tag_o(icpu_tag_immu),
|
.icpu_tag_o(icpu_tag_immu),
|
|
.icpu_rty_o(icpu_rty_immu),
|
.icpu_err_o(icpu_err_immu),
|
.icpu_err_o(icpu_err_immu),
|
|
|
// SPR access
|
// SPR access
|
.spr_cs(spr_cs[`OR1200_SPR_GROUP_IMMU]),
|
.spr_cs(spr_cs[`OR1200_SPR_GROUP_IMMU]),
|
.spr_write(spr_we),
|
.spr_write(spr_we),
|
.spr_addr(spr_addr),
|
.spr_addr(spr_addr),
|
.spr_dat_i(spr_dat_cpu),
|
.spr_dat_i(spr_dat_cpu),
|
.spr_dat_o(spr_dat_immu),
|
.spr_dat_o(spr_dat_immu),
|
|
|
// IC i/f
|
// IC i/f
|
|
.icimmu_rty_i(icimmu_rty_ic),
|
.icimmu_err_i(icimmu_err_ic),
|
.icimmu_err_i(icimmu_err_ic),
|
.icimmu_tag_i(icimmu_tag_ic),
|
.icimmu_tag_i(icimmu_tag_ic),
|
.icimmu_adr_o(icimmu_adr_immu),
|
.icimmu_adr_o(icimmu_adr_immu),
|
.icimmu_cyc_o(icimmu_cyc_immu),
|
.icimmu_cyc_o(icimmu_cyc_immu),
|
.icimmu_stb_o(icimmu_stb_immu),
|
.icimmu_stb_o(icimmu_stb_immu),
|
Line 453... |
Line 458... |
.icpu_we_i(icpu_we_cpu),
|
.icpu_we_i(icpu_we_cpu),
|
.icpu_sel_i(icpu_sel_cpu),
|
.icpu_sel_i(icpu_sel_cpu),
|
.icpu_tag_i(icpu_tag_cpu),
|
.icpu_tag_i(icpu_tag_cpu),
|
.icpu_dat_o(icpu_dat_ic),
|
.icpu_dat_o(icpu_dat_ic),
|
.icpu_ack_o(icpu_ack_ic),
|
.icpu_ack_o(icpu_ack_ic),
|
.icpu_rty_o(icpu_rty_ic),
|
.icimmu_rty_o(icimmu_rty_ic),
|
.icimmu_err_o(icimmu_err_ic),
|
.icimmu_err_o(icimmu_err_ic),
|
.icimmu_tag_o(icimmu_tag_ic),
|
.icimmu_tag_o(icimmu_tag_ic),
|
|
|
// SPR access
|
// SPR access
|
.spr_cs(spr_cs[`OR1200_SPR_GROUP_IC]),
|
.spr_cs(spr_cs[`OR1200_SPR_GROUP_IC]),
|
Line 492... |
Line 497... |
.icpu_we_o(icpu_we_cpu),
|
.icpu_we_o(icpu_we_cpu),
|
.icpu_sel_o(icpu_sel_cpu),
|
.icpu_sel_o(icpu_sel_cpu),
|
.icpu_tag_o(icpu_tag_cpu),
|
.icpu_tag_o(icpu_tag_cpu),
|
.icpu_dat_i(icpu_dat_ic),
|
.icpu_dat_i(icpu_dat_ic),
|
.icpu_ack_i(icpu_ack_ic),
|
.icpu_ack_i(icpu_ack_ic),
|
.icpu_rty_i(icpu_rty_ic),
|
.icpu_rty_i(icpu_rty_immu),
|
.icpu_adr_i(icpu_adr_immu),
|
.icpu_adr_i(icpu_adr_immu),
|
.icpu_err_i(icpu_err_immu),
|
.icpu_err_i(icpu_err_immu),
|
.icpu_tag_i(icpu_tag_immu),
|
.icpu_tag_i(icpu_tag_immu),
|
|
|
// Connection CPU to external Debug port
|
// Connection CPU to external Debug port
|
Line 696... |
Line 701... |
//
|
//
|
or1200_tt or1200_tt(
|
or1200_tt or1200_tt(
|
// RISC Internal Interface
|
// RISC Internal Interface
|
.clk(clk_i),
|
.clk(clk_i),
|
.rst(rst_i),
|
.rst(rst_i),
|
|
.du_stall(du_stall),
|
.spr_cs(spr_cs[`OR1200_SPR_GROUP_TT]),
|
.spr_cs(spr_cs[`OR1200_SPR_GROUP_TT]),
|
.spr_write(spr_we),
|
.spr_write(spr_we),
|
.spr_addr(spr_addr),
|
.spr_addr(spr_addr),
|
.spr_dat_i(spr_dat_cpu),
|
.spr_dat_i(spr_dat_cpu),
|
.spr_dat_o(spr_dat_tt),
|
.spr_dat_o(spr_dat_tt),
|