Line 40... |
Line 40... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.6 2002/09/24 18:30:00 mihad
|
|
// Changed state machine encoding to true one-hot
|
|
//
|
// Revision 1.5 2002/08/22 09:07:06 mihad
|
// Revision 1.5 2002/08/22 09:07:06 mihad
|
// Fixed a bug and provided testcase for it. Target was responding to configuration cycle type 1 transactions.
|
// Fixed a bug and provided testcase for it. Target was responding to configuration cycle type 1 transactions.
|
//
|
//
|
// Revision 1.4 2002/02/19 16:32:37 mihad
|
// Revision 1.4 2002/02/19 16:32:37 mihad
|
// Modified testbench and fixed some bugs
|
// Modified testbench and fixed some bugs
|
Line 57... |
Line 60... |
// Revision 1.1.1.1 2001/10/02 15:33:47 mihad
|
// Revision 1.1.1.1 2001/10/02 15:33:47 mihad
|
// New project directory structure
|
// New project directory structure
|
//
|
//
|
//
|
//
|
|
|
`define P_FSM_BITS 2 // number of bits needed for FSM states
|
|
|
|
`include "pci_constants.v"
|
`include "pci_constants.v"
|
|
|
// synopsys translate_off
|
// synopsys translate_off
|
`include "timescale.v"
|
`include "timescale.v"
|
// synopsys translate_on
|
// synopsys translate_on
|
Line 452... |
Line 453... |
.state_transfere (sm_transfere),
|
.state_transfere (sm_transfere),
|
.state_default (state_default),
|
.state_default (state_default),
|
.clk_enable (pcit_sm_clk_en)
|
.clk_enable (pcit_sm_clk_en)
|
);
|
);
|
|
|
reg [(`P_FSM_BITS - 1):0] c_state ; //current state register
|
reg [2:0] c_state ; //current state register
|
reg [(`P_FSM_BITS - 1):0] n_state ; //next state input to current state register
|
reg [2:0] n_state ; //next state input to current state register
|
|
|
// state machine register control
|
// state machine register control
|
always@(posedge clk_in or posedge reset_in)
|
always@(posedge clk_in or posedge reset_in)
|
begin
|
begin
|
if (reset_in) // reset state machine to S_IDLE state
|
if (reset_in) // reset state machine to S_IDLE state
|