Line 40... |
Line 40... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.7 2002/10/11 10:09:01 mihad
|
|
// Added additional testcase and changed rst name in BIST to trst
|
|
//
|
// Revision 1.6 2002/10/08 17:17:06 mihad
|
// Revision 1.6 2002/10/08 17:17:06 mihad
|
// Added BIST signals for RAMs.
|
// Added BIST signals for RAMs.
|
//
|
//
|
// Revision 1.5 2002/09/30 16:03:04 mihad
|
// Revision 1.5 2002/09/30 16:03:04 mihad
|
// Added meta flop module for easier meta stable FF identification during synthesis
|
// Added meta flop module for easier meta stable FF identification during synthesis
|
Line 98... |
Line 101... |
wbr_empty_out
|
wbr_empty_out
|
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
,
|
,
|
// debug chain signals
|
// debug chain signals
|
trst ,
|
scanb_rst, // bist scan reset
|
SO ,
|
scanb_clk, // bist scan clock
|
SI ,
|
scanb_si, // bist scan serial in
|
shift_DR ,
|
scanb_so, // bist scan serial out
|
capture_DR ,
|
scanb_sen // bist scan shift enable
|
extest ,
|
|
tck
|
|
`endif
|
`endif
|
) ;
|
) ;
|
|
|
/*-----------------------------------------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------------------------------------
|
System inputs:
|
System inputs:
|
Line 210... |
Line 211... |
|
|
`ifdef PCI_BIST
|
`ifdef PCI_BIST
|
/*-----------------------------------------------------
|
/*-----------------------------------------------------
|
BIST debug chain port signals
|
BIST debug chain port signals
|
-----------------------------------------------------*/
|
-----------------------------------------------------*/
|
input trst ;
|
input scanb_rst; // bist scan reset
|
output SO ;
|
input scanb_clk; // bist scan clock
|
input SI ;
|
input scanb_si; // bist scan serial in
|
input shift_DR ;
|
output scanb_so; // bist scan serial out
|
input capture_DR ;
|
input scanb_sen; // bist scan shift enable
|
input extest ;
|
|
input tck ;
|
|
`endif
|
`endif
|
|
|
/*-----------------------------------------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------------------------------------
|
FIFO depth parameters:
|
FIFO depth parameters:
|
WBW_DEPTH = defines WBW_FIFO depth
|
WBW_DEPTH = defines WBW_FIFO depth
|
Line 332... |
Line 331... |
|
|
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 SO_internal ; // wires for connection of debug ports on two rams
|
wire scanb_so_internal ; // wires for connection of debug ports on two rams
|
wire SI_internal = SO_internal ;
|
wire scanb_si_internal = scanb_so_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
|
WB_TPRAM #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbw_fifo_storage
|
WB_TPRAM #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbw_fifo_storage
|
(
|
(
|
Line 360... |
Line 359... |
.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
|
,
|
,
|
.trst (trst),
|
.scanb_rst (scanb_rst),
|
.SO (SO_internal),
|
.scanb_clk (scanb_clk),
|
.SI (SI),
|
.scanb_si (scanb_si),
|
.shift_DR (shift_DR),
|
.scanb_so (scanb_so_internal),
|
.capture_DR (capture_DR),
|
.scanb_sen (scanb_sen)
|
.extest (extest),
|
|
.tck (tck)
|
|
`endif
|
`endif
|
);
|
);
|
|
|
WB_TPRAM #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbr_fifo_storage
|
WB_TPRAM #(`WB_FIFO_RAM_ADDR_LENGTH, 40) wbr_fifo_storage
|
(
|
(
|
Line 393... |
Line 390... |
.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
|
,
|
,
|
.trst (trst),
|
.scanb_rst (scanb_rst),
|
.SO (SO),
|
.scanb_clk (scanb_clk),
|
.SI (SI_internal),
|
.scanb_si (scanb_si_internal),
|
.shift_DR (shift_DR),
|
.scanb_so (scanb_so),
|
.capture_DR (capture_DR),
|
.scanb_sen (scanb_sen)
|
.extest (extest),
|
|
.tck (tck)
|
|
`endif
|
`endif
|
);
|
);
|
|
|
`else // RAM blocks sharing between two fifos
|
`else // RAM blocks sharing between two fifos
|
|
|
Line 458... |
Line 453... |
.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
|
,
|
,
|
.trst (trst),
|
.scanb_rst (scanb_rst),
|
.SO (SO),
|
.scanb_clk (scanb_clk),
|
.SI (SI),
|
.scanb_si (scanb_si),
|
.shift_DR (shift_DR),
|
.scanb_so (scanb_so),
|
.capture_DR (capture_DR),
|
.scanb_sen (scanb_sen)
|
.extest (extest),
|
|
.tck (tck)
|
|
`endif
|
`endif
|
);
|
);
|
|
|
`endif
|
`endif
|
|
|