Line 40... |
Line 40... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.5 2002/09/25 15:53:52 mihad
|
|
// Removed all logic from asynchronous reset network
|
|
//
|
// Revision 1.4 2002/03/05 11:53:47 mihad
|
// Revision 1.4 2002/03/05 11:53:47 mihad
|
// Added some testcases, removed un-needed fifo signals
|
// Added some testcases, removed un-needed fifo signals
|
//
|
//
|
// Revision 1.3 2002/02/01 15:25:13 mihad
|
// Revision 1.3 2002/02/01 15:25:13 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
|
Line 525... |
Line 528... |
end
|
end
|
|
|
// transaction is ready when incoming transaction count is not equal to outgoing transaction count ( what comes in must come out )
|
// transaction is ready when incoming transaction count is not equal to outgoing transaction count ( what comes in must come out )
|
// anytime last entry of transaction is pulled out of fifo, transaction ready flag is cleared for at least one clock to prevent wrong operation
|
// anytime last entry of transaction is pulled out of fifo, transaction ready flag is cleared for at least one clock to prevent wrong operation
|
// ( otherwise transaction ready would stay set for one additional clock even though next transaction was not ready )
|
// ( otherwise transaction ready would stay set for one additional clock even though next transaction was not ready )
|
reg pciw_transaction_ready_out ;
|
|
always@(posedge wb_clock_in or posedge pciw_clear)
|
wire pciw_transaction_ready_flop_i = inGreyCount != outGreyCount ;
|
begin
|
meta_flop #(0) i_meta_flop_transaction_ready
|
if (pciw_clear)
|
(
|
pciw_transaction_ready_out <= #`FF_DELAY 1'b0 ;
|
.rst_i (pciw_clear),
|
else
|
.clk_i (wb_clock_in),
|
if ( out_count_en )
|
.ld_i (out_count_en),
|
pciw_transaction_ready_out <= #`FF_DELAY 1'b0 ;
|
.ld_val_i (1'b0),
|
else
|
.en_i (1'b1),
|
pciw_transaction_ready_out <= #`FF_DELAY inGreyCount != outGreyCount ;
|
.d_i (pciw_transaction_ready_flop_i),
|
end
|
.meta_q_o (pciw_transaction_ready_out)
|
|
) ;
|
|
|
assign pcir_transaction_ready_out = 1'b0 ;
|
assign pcir_transaction_ready_out = 1'b0 ;
|
|
|
endmodule
|
endmodule
|
|
|