Line 43... |
Line 43... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.14 2001/11/28 09:36:15 mohor
|
|
// Register length fixed.
|
|
//
|
// Revision 1.13 2001/11/27 13:37:43 mohor
|
// Revision 1.13 2001/11/27 13:37:43 mohor
|
// CRC is returned when chain selection data is transmitted.
|
// CRC is returned when chain selection data is transmitted.
|
//
|
//
|
// Revision 1.12 2001/11/26 10:47:09 mohor
|
// Revision 1.12 2001/11/26 10:47:09 mohor
|
// Crc generation is different for read or write commands. Small synthesys fixes.
|
// Crc generation is different for read or write commands. Small synthesys fixes.
|
Line 228... |
Line 231... |
reg RISCAccess_q2; // Delayed signals used for accessing the RISC
|
reg RISCAccess_q2; // Delayed signals used for accessing the RISC
|
|
|
reg wb_AccessTck; // Indicates access to the WISHBONE
|
reg wb_AccessTck; // Indicates access to the WISHBONE
|
reg [31:0] WBReadLatch; // Data latched during WISHBONE read
|
reg [31:0] WBReadLatch; // Data latched during WISHBONE read
|
reg WBErrorLatch; // Error latched during WISHBONE read
|
reg WBErrorLatch; // Error latched during WISHBONE read
|
|
reg trst; // trst is active high while trst_pad_i is active low
|
|
|
wire TCK = tck_pad_i;
|
wire TCK = tck_pad_i;
|
wire TMS = tms_pad_i;
|
wire TMS = tms_pad_i;
|
wire TDI = tdi_pad_i;
|
wire TDI = tdi_pad_i;
|
wire trst = ~trst_pad_i; // trst_pad_i is active low
|
|
|
|
wire [31:0] RegDataIn; // Data from registers (read data)
|
wire [31:0] RegDataIn; // Data from registers (read data)
|
wire [`CRC_LENGTH-1:0] CalculatedCrcOut; // CRC calculated in this module. This CRC is apended at the end of the TDO.
|
wire [`CRC_LENGTH-1:0] CalculatedCrcOut; // CRC calculated in this module. This CRC is apended at the end of the TDO.
|
|
|
wire RiscStall_reg; // RISC is stalled by setting the register bit
|
wire RiscStall_reg; // RISC is stalled by setting the register bit
|
Line 325... |
Line 328... |
`endif
|
`endif
|
|
|
|
|
/**********************************************************************************
|
/**********************************************************************************
|
* *
|
* *
|
|
* Synchronizing TRST to clock signal *
|
|
* *
|
|
**********************************************************************************/
|
|
always @ (posedge wb_clk_i)
|
|
begin
|
|
trst <=#Tp ~trst_pad_i; // trst_pad_i is active low
|
|
end
|
|
|
|
|
|
/**********************************************************************************
|
|
* *
|
* TAP State Machine: Fully JTAG compliant *
|
* TAP State Machine: Fully JTAG compliant *
|
* *
|
* *
|
**********************************************************************************/
|
**********************************************************************************/
|
|
|
// TestLogicReset state
|
// TestLogicReset state
|