Line 40... |
Line 40... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.4 2003/08/14 13:06:03 simons
|
|
// synchronizer_flop replaced with pci_synchronizer_flop, artisan ram instance updated.
|
|
//
|
// Revision 1.3 2003/03/26 13:16:18 mihad
|
// Revision 1.3 2003/03/26 13:16:18 mihad
|
// Added the reset value parameter to the synchronizer flop module.
|
// Added the reset value parameter to the synchronizer flop module.
|
// Added resets to all synchronizer flop instances.
|
// Added resets to all synchronizer flop instances.
|
// Repaired initial sync value in fifos.
|
// Repaired initial sync value in fifos.
|
//
|
//
|
Line 52... |
Line 55... |
//
|
//
|
// Revision 1.1 2003/01/27 16:49:31 mihad
|
// Revision 1.1 2003/01/27 16:49:31 mihad
|
// Changed module and file names. Updated scripts accordingly. FIFO synchronizations changed.
|
// Changed module and file names. Updated scripts accordingly. FIFO synchronizations changed.
|
//
|
//
|
// Revision 1.9 2002/10/18 03:36:37 tadejm
|
// Revision 1.9 2002/10/18 03:36:37 tadejm
|
// Changed wrong signal name scanb_sen into scanb_en.
|
// Changed wrong signal name mbist_sen into mbist_ctrl_i.
|
//
|
//
|
// Revision 1.8 2002/10/17 22:49:22 tadejm
|
// Revision 1.8 2002/10/17 22:49:22 tadejm
|
// Changed BIST signals for RAMs.
|
// Changed BIST signals for RAMs.
|
//
|
//
|
// Revision 1.7 2002/10/11 10:09:01 mihad
|
// Revision 1.7 2002/10/11 10:09:01 mihad
|
Line 118... |
Line 121... |
wbr_empty_out
|
wbr_empty_out
|
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
,
|
,
|
// debug chain signals
|
// debug chain signals
|
scanb_rst, // bist scan reset
|
mbist_si_i, // bist scan serial in
|
scanb_clk, // bist scan clock
|
mbist_so_o, // bist scan serial out
|
scanb_si, // bist scan serial in
|
mbist_ctrl_i // bist chain shift control
|
scanb_so, // bist scan serial out
|
|
scanb_en // bist scan shift enable
|
|
`endif
|
`endif
|
) ;
|
) ;
|
|
|
/*-----------------------------------------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------------------------------------
|
System inputs:
|
System inputs:
|
Line 228... |
Line 229... |
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
/*-----------------------------------------------------
|
/*-----------------------------------------------------
|
BIST debug chain port signals
|
BIST debug chain port signals
|
-----------------------------------------------------*/
|
-----------------------------------------------------*/
|
input scanb_rst; // bist scan reset
|
input mbist_si_i; // bist scan serial in
|
input scanb_clk; // bist scan clock
|
output mbist_so_o; // bist scan serial out
|
input scanb_si; // bist scan serial in
|
input [`PCI_MBIST_CTRL_WIDTH - 1:0] mbist_ctrl_i; // bist chain shift control
|
output scanb_so; // bist scan serial out
|
|
input scanb_en; // bist scan shift enable
|
|
`endif
|
`endif
|
|
|
/*-----------------------------------------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------------------------------------
|
FIFO depth parameters:
|
FIFO depth parameters:
|
WBW_DEPTH = defines WBW_FIFO depth
|
WBW_DEPTH = defines WBW_FIFO depth
|
Line 348... |
Line 347... |
|
|
wire wbw_read_enable = 1'b1 ;
|
wire wbw_read_enable = 1'b1 ;
|
wire wbr_read_enable = 1'b1 ;
|
wire wbr_read_enable = 1'b1 ;
|
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
wire scanb_so_internal ; // wires for connection of debug ports on two rams
|
wire mbist_so_o_internal ; // wires for connection of debug ports on two rams
|
wire scanb_si_internal = scanb_so_internal ;
|
wire mbist_si_i_internal = mbist_so_o_internal ;
|
`endif
|
`endif
|
|
|
// instantiate and connect two generic rams - one for wishbone write fifo and one for wishbone read fifo
|
// instantiate and connect two generic rams - one for wishbone write fifo and one for wishbone read fifo
|
pci_wb_tpram #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbw_fifo_storage
|
pci_wb_tpram #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbw_fifo_storage
|
(
|
(
|
Line 376... |
Line 375... |
.di_b(40'h00_0000_0000),
|
.di_b(40'h00_0000_0000),
|
.do_b(dpram_portB_output)
|
.do_b(dpram_portB_output)
|
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
,
|
,
|
.scanb_rst (scanb_rst),
|
.mbist_si_i (mbist_si_i),
|
.scanb_clk (scanb_clk),
|
.mbist_so_o (mbist_so_o_internal),
|
.scanb_si (scanb_si),
|
.mbist_ctrl_i (mbist_ctrl_i)
|
.scanb_so (scanb_so_internal),
|
|
.scanb_en (scanb_en)
|
|
`endif
|
`endif
|
);
|
);
|
|
|
pci_wb_tpram #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbr_fifo_storage
|
pci_wb_tpram #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbr_fifo_storage
|
(
|
(
|
Line 407... |
Line 404... |
.di_b(40'h00_0000_0000),
|
.di_b(40'h00_0000_0000),
|
.do_b(dpram_portA_output)
|
.do_b(dpram_portA_output)
|
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
,
|
,
|
.scanb_rst (scanb_rst),
|
.mbist_si_i (mbist_si_i_internal),
|
.scanb_clk (scanb_clk),
|
.mbist_so_o (mbist_so_o),
|
.scanb_si (scanb_si_internal),
|
.mbist_ctrl_i (mbist_ctrl_i)
|
.scanb_so (scanb_so),
|
|
.scanb_en (scanb_en)
|
|
`endif
|
`endif
|
);
|
);
|
|
|
`else // RAM blocks sharing between two fifos
|
`else // RAM blocks sharing between two fifos
|
|
|
Line 470... |
Line 465... |
.di_b(dpram_portB_input),
|
.di_b(dpram_portB_input),
|
.do_b(dpram_portB_output)
|
.do_b(dpram_portB_output)
|
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
,
|
,
|
.scanb_rst (scanb_rst),
|
.mbist_si_i (mbist_si_i),
|
.scanb_clk (scanb_clk),
|
.mbist_so_o (mbist_so_o),
|
.scanb_si (scanb_si),
|
.mbist_ctrl_i (mbist_ctrl_i)
|
.scanb_so (scanb_so),
|
|
.scanb_en (scanb_en)
|
|
`endif
|
`endif
|
);
|
);
|
|
|
`endif
|
`endif
|
|
|