Line 40... |
Line 40... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.4 2003/01/27 16:49:31 mihad
|
|
// Changed module and file names. Updated scripts accordingly. FIFO synchronizations changed.
|
|
//
|
// Revision 1.3 2002/02/01 15:25:12 mihad
|
// Revision 1.3 2002/02/01 15:25:12 mihad
|
// Repaired a few bugs, updated specification, added test bench files and design document
|
// Repaired a few bugs, updated specification, added test bench files and design document
|
//
|
//
|
// Revision 1.2 2001/10/05 08:14:29 mihad
|
// Revision 1.2 2001/10/05 08:14:29 mihad
|
// Updated all files with inclusion of timescale file for simulation purposes.
|
// Updated all files with inclusion of timescale file for simulation purposes.
|
Line 61... |
Line 64... |
// It provides data flip flops with reset
|
// It provides data flip flops with reset
|
module pci_in_reg
|
module pci_in_reg
|
(
|
(
|
reset_in,
|
reset_in,
|
clk_in,
|
clk_in,
|
|
init_complete_in,
|
|
|
pci_gnt_in,
|
pci_gnt_in,
|
pci_frame_in,
|
pci_frame_in,
|
pci_irdy_in,
|
pci_irdy_in,
|
pci_trdy_in,
|
pci_trdy_in,
|
Line 84... |
Line 88... |
pci_ad_reg_out,
|
pci_ad_reg_out,
|
pci_cbe_reg_out
|
pci_cbe_reg_out
|
|
|
);
|
);
|
|
|
input reset_in, clk_in ;
|
input reset_in, clk_in, init_complete_in ;
|
|
|
input pci_gnt_in ;
|
input pci_gnt_in ;
|
input pci_frame_in ;
|
input pci_frame_in ;
|
input pci_irdy_in ;
|
input pci_irdy_in ;
|
input pci_trdy_in ;
|
input pci_trdy_in ;
|
Line 122... |
Line 126... |
always@(posedge reset_in or posedge clk_in)
|
always@(posedge reset_in or posedge clk_in)
|
begin
|
begin
|
if ( reset_in )
|
if ( reset_in )
|
begin
|
begin
|
pci_gnt_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_gnt_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_frame_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_frame_reg_out <= #`FF_DELAY 1'b0 ;
|
pci_irdy_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_irdy_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_trdy_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_trdy_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_stop_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_stop_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_devsel_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_devsel_reg_out <= #`FF_DELAY 1'b1 ;
|
pci_idsel_reg_out <= #`FF_DELAY 1'b0 ; // active high!
|
pci_idsel_reg_out <= #`FF_DELAY 1'b0 ; // active high!
|
pci_ad_reg_out <= #`FF_DELAY 32'h0000_0000 ;
|
pci_ad_reg_out <= #`FF_DELAY 32'h0000_0000 ;
|
pci_cbe_reg_out <= #`FF_DELAY 4'h0 ;
|
pci_cbe_reg_out <= #`FF_DELAY 4'h0 ;
|
end
|
end
|
else
|
else if (init_complete_in)
|
begin
|
begin
|
pci_gnt_reg_out <= #`FF_DELAY pci_gnt_in ;
|
pci_gnt_reg_out <= #`FF_DELAY pci_gnt_in ;
|
pci_frame_reg_out <= #`FF_DELAY pci_frame_in ;
|
pci_frame_reg_out <= #`FF_DELAY pci_frame_in ;
|
pci_irdy_reg_out <= #`FF_DELAY pci_irdy_in ;
|
pci_irdy_reg_out <= #`FF_DELAY pci_irdy_in ;
|
pci_trdy_reg_out <= #`FF_DELAY pci_trdy_in ;
|
pci_trdy_reg_out <= #`FF_DELAY pci_trdy_in ;
|