| 1 |
186 |
mohor |
#/////////////////////////////////////////////////////////////////////
|
| 2 |
|
|
#/// ////
|
| 3 |
|
|
#/// tb_eth.do ////
|
| 4 |
|
|
#/// ////
|
| 5 |
|
|
#/// This file is part of the Ethernet IP core project ////
|
| 6 |
|
|
#/// http://www.opencores.org/projects/ethmac/ ////
|
| 7 |
|
|
#/// ////
|
| 8 |
|
|
#/// Author(s): ////
|
| 9 |
|
|
#/// - Igor Mohor (igorM@opencores.org) ////
|
| 10 |
|
|
#/// ////
|
| 11 |
|
|
#/// All additional information is avaliable in the Readme.txt ////
|
| 12 |
|
|
#/// file. ////
|
| 13 |
|
|
#/// ////
|
| 14 |
|
|
#/////////////////////////////////////////////////////////////////////
|
| 15 |
|
|
#/// ////
|
| 16 |
|
|
#/// Copyright (C) 2001, 2002 Authors ////
|
| 17 |
|
|
#/// ////
|
| 18 |
|
|
#/// This source file may be used and distributed without ////
|
| 19 |
|
|
#/// restriction provided that this copyright statement is not ////
|
| 20 |
|
|
#/// removed from the file and that any derivative work contains ////
|
| 21 |
|
|
#/// the original copyright notice and the associated disclaimer. ////
|
| 22 |
|
|
#/// ////
|
| 23 |
|
|
#/// This source file is free software; you can redistribute it ////
|
| 24 |
|
|
#/// and/or modify it under the terms of the GNU Lesser General ////
|
| 25 |
|
|
#/// Public License as published by the Free Software Foundation; ////
|
| 26 |
|
|
#/// either version 2.1 of the License, or (at your option) any ////
|
| 27 |
|
|
#/// later version. ////
|
| 28 |
|
|
#/// ////
|
| 29 |
|
|
#/// This source is distributed in the hope that it will be ////
|
| 30 |
|
|
#/// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
| 31 |
|
|
#/// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
| 32 |
|
|
#/// PURPOSE. See the GNU Lesser General Public License for more ////
|
| 33 |
|
|
#/// details. ////
|
| 34 |
|
|
#/// ////
|
| 35 |
|
|
#/// You should have received a copy of the GNU Lesser General ////
|
| 36 |
|
|
#/// Public License along with this source; if not, download it ////
|
| 37 |
|
|
#/// from http://www.opencores.org/lgpl.shtml ////
|
| 38 |
|
|
#/// ////
|
| 39 |
|
|
#/////////////////////////////////////////////////////////////////////
|
| 40 |
|
|
#/
|
| 41 |
|
|
#/ CVS Revision History
|
| 42 |
|
|
#/
|
| 43 |
|
|
#/ $Log: not supported by cvs2svn $
|
| 44 |
225 |
tadejm |
#/ Revision 1.4 2002/10/11 13:33:56 mohor
|
| 45 |
|
|
#/ Bist supported.
|
| 46 |
|
|
#/
|
| 47 |
217 |
mohor |
#/ Revision 1.3 2002/10/11 12:42:12 mohor
|
| 48 |
|
|
#/ Bist supported.
|
| 49 |
|
|
#/
|
| 50 |
215 |
mohor |
#/ Revision 1.2 2002/09/23 18:27:36 mohor
|
| 51 |
|
|
#/ ETH_VIRTUAL_SILICON_RAM supported.
|
| 52 |
|
|
#/
|
| 53 |
205 |
mohor |
#/ Revision 1.1 2002/09/17 19:10:17 mohor
|
| 54 |
|
|
#/ Macro for testbench (DO file).
|
| 55 |
186 |
mohor |
#/
|
| 56 |
|
|
#/
|
| 57 |
|
|
#/
|
| 58 |
205 |
mohor |
#/
|
| 59 |
186 |
mohor |
|
| 60 |
225 |
tadejm |
|
| 61 |
|
|
#write format wave -window .wave C:/Projects/ethernet/tadejm/ethernet/sim/rtl_sim/modelsim_sim/bin/wave.do
|
| 62 |
|
|
#.main clear
|
| 63 |
|
|
|
| 64 |
186 |
mohor |
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_clockgen.v}
|
| 65 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_crc.v}
|
| 66 |
356 |
olof |
vlog -reportprogress 300 -work work {../../../../rtl/verilog/ethmac_defines.v}
|
| 67 |
186 |
mohor |
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_fifo.v}
|
| 68 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_maccontrol.v}
|
| 69 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_macstatus.v}
|
| 70 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_miim.v}
|
| 71 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_outputcontrol.v}
|
| 72 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_random.v}
|
| 73 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_receivecontrol.v}
|
| 74 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_register.v}
|
| 75 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_registers.v}
|
| 76 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_rxaddrcheck.v}
|
| 77 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_rxcounters.v}
|
| 78 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_rxethmac.v}
|
| 79 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_rxstatem.v}
|
| 80 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_shiftreg.v}
|
| 81 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_spram_256x32.v}
|
| 82 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_top.v}
|
| 83 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_transmitcontrol.v}
|
| 84 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_txcounters.v}
|
| 85 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_txethmac.v}
|
| 86 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_txstatem.v}
|
| 87 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/eth_wishbone.v}
|
| 88 |
|
|
vlog -reportprogress 300 -work work {../../../../rtl/verilog/timescale.v}
|
| 89 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/eth_phy.v}
|
| 90 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/eth_phy_defines.v}
|
| 91 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/tb_eth_defines.v}
|
| 92 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/tb_ethernet.v}
|
| 93 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/wb_bus_mon.v}
|
| 94 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/wb_master_behavioral.v}
|
| 95 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/wb_master32.v}
|
| 96 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/wb_model_defines.v}
|
| 97 |
|
|
vlog -reportprogress 300 -work work {../../../../bench/verilog/wb_slave_behavioral.v}
|
| 98 |
|
|
|
| 99 |
|
|
|
| 100 |
|
|
# If you use define ETH_XILINX_RAMB4 switched on, then uncomment the following lines
|
| 101 |
|
|
# vlog -reportprogress 300 -work work {C:/Xilinx/verilog/src/glbl.v}
|
| 102 |
|
|
# vlog -reportprogress 300 -work work {C:/Xilinx/verilog/src/unisims/RAMB4_S16.v}
|
| 103 |
|
|
|
| 104 |
205 |
mohor |
# If you use define ETH_VIRTUAL_SILICON_RAM switched on, then uncomment the following lines
|
| 105 |
215 |
mohor |
# vlog -reportprogress 300 -work work {../../../../../vs_rams/018/vs_hdsp_256x32.v}
|
| 106 |
186 |
mohor |
|
| 107 |
215 |
mohor |
# If you use define ETH_VIRTUAL_SILICON_RAM and ETH_BIST switched on, then uncomment
|
| 108 |
|
|
# the following lines
|
| 109 |
|
|
# vlog -reportprogress 300 -work work {../../../../../vs_rams/018/vs_hdsp_256x32_bist.v}
|
| 110 |
217 |
mohor |
# vlog -reportprogress 300 -work work {../../../../../vs_rams/018/vs_hdsp_256x32_bist_int.v}
|
| 111 |
|
|
# vlog -reportprogress 300 -work work {../../../../../jtag_marvin/jt_bc1in.v}
|
| 112 |
|
|
# vlog -reportprogress 300 -work work {../../../../../bist_marvin/bist.v}
|
| 113 |
215 |
mohor |
|
| 114 |
186 |
mohor |
# If you use define ETH_XILINX_RAMB4 switched on, then uncomment the following lines
|
| 115 |
|
|
# !ETH_XILINX_RAMB4
|
| 116 |
|
|
vsim work.tb_ethernet
|
| 117 |
|
|
# ETH_XILINX_RAMB4
|
| 118 |
225 |
tadejm |
#vsim work.glbl work.tb_ethernet
|
| 119 |
186 |
mohor |
|
| 120 |
|
|
|
| 121 |
225 |
tadejm |
do ../bin/eth_wave.do
|
| 122 |
|
|
#do ../bin/wave.do
|
| 123 |
186 |
mohor |
run -all
|
| 124 |
|
|
|
| 125 |
|
|
|