Line 43... |
Line 43... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
//
|
|
// Revision 1.6 2001/10/15 09:55:47 mohor
|
|
// Wishbone interface added, few fixes for better performance,
|
|
// hooks for boundary scan testing added.
|
|
//
|
// Revision 1.5 2001/09/24 14:06:42 mohor
|
// Revision 1.5 2001/09/24 14:06:42 mohor
|
// Changes connected to the OpenRISC access (SPR read, SPR write).
|
// Changes connected to the OpenRISC access (SPR read, SPR write).
|
//
|
//
|
// Revision 1.4 2001/09/20 10:11:25 mohor
|
// Revision 1.4 2001/09/20 10:11:25 mohor
|
// Working version. Few bugs fixed, comments added.
|
// Working version. Few bugs fixed, comments added.
|
Line 78... |
Line 83... |
module dbg_top(
|
module dbg_top(
|
// JTAG pins
|
// JTAG pins
|
tms_pad_i, tck_pad_i, trst_pad_i, tdi_pad_i, tdo_pad_o,
|
tms_pad_i, tck_pad_i, trst_pad_i, tdi_pad_i, tdo_pad_o,
|
|
|
// Boundary Scan signals
|
// Boundary Scan signals
|
CaptureDR, ShiftDR, UpdateDR, EXTESTSelected, BS_CHAIN_I,
|
capture_dr_o, shift_dr_o, update_dr_o, extest_selected_o, bs_chain_i,
|
|
|
// RISC signals
|
// RISC signals
|
risc_clk_i, risc_addr_o, risc_data_i, risc_data_o, wp_i,
|
risc_clk_i, risc_addr_o, risc_data_i, risc_data_o, wp_i,
|
bp_i, opselect_o, lsstatus_i, istatus_i, risc_stall_o, reset_o,
|
bp_i, opselect_o, lsstatus_i, istatus_i, risc_stall_o, reset_o,
|
|
|
Line 105... |
Line 110... |
input tdi_pad_i; // JTAG test data input pad
|
input tdi_pad_i; // JTAG test data input pad
|
output tdo_pad_o; // JTAG test data output pad
|
output tdo_pad_o; // JTAG test data output pad
|
|
|
|
|
// Boundary Scan signals
|
// Boundary Scan signals
|
output CaptureDR;
|
output capture_dr_o;
|
output ShiftDR;
|
output shift_dr_o;
|
output UpdateDR;
|
output update_dr_o;
|
output EXTESTSelected;
|
output extest_selected_o;
|
input BS_CHAIN_I;
|
input bs_chain_i;
|
|
|
|
|
// RISC signals
|
// RISC signals
|
input risc_clk_i; // Master clock (RISC clock)
|
input risc_clk_i; // Master clock (RISC clock)
|
input [31:0] risc_data_i; // RISC data inputs (data that is written to the RISC registers)
|
input [31:0] risc_data_i; // RISC data inputs (data that is written to the RISC registers)
|
Line 225... |
Line 230... |
wire RiscStall_read_access; // Stalling RISC because of the read access (SPR read)
|
wire RiscStall_read_access; // Stalling RISC because of the read access (SPR read)
|
wire RiscStall_write_access; // Stalling RISC because of the write access (SPR write)
|
wire RiscStall_write_access; // Stalling RISC because of the write access (SPR write)
|
wire RiscStall_access; // Stalling RISC because of the read or write access
|
wire RiscStall_access; // Stalling RISC because of the read or write access
|
|
|
|
|
|
assign capture_dr_o = CaptureDR;
|
|
assign shift_dr_o = ShiftDR;
|
|
assign update_dr_o = UpdateDR;
|
|
assign extest_selected_o = EXTESTSelected;
|
|
wire BS_CHAIN_I = bs_chain_i;
|
|
|
// This signals are used only when TRACE is used in the design
|
// This signals are used only when TRACE is used in the design
|
`ifdef TRACE_ENABLED
|
`ifdef TRACE_ENABLED
|
wire [39:0] TraceChain; // Chain that comes from trace module
|
wire [39:0] TraceChain; // Chain that comes from trace module
|
reg ReadBuffer_Tck; // Command for incrementing the trace read pointer (synchr with TCK)
|
reg ReadBuffer_Tck; // Command for incrementing the trace read pointer (synchr with TCK)
|