1 |
42 |
lmaarsen |
#####################################################################################
|
2 |
|
|
# Copyright (C) 1991-2007 Altera Corporation
|
3 |
|
|
# Any megafunction design, and related netlist (encrypted or decrypted),
|
4 |
|
|
# support information, device programming or simulation file, and any other
|
5 |
|
|
# associated documentation or information provided by Altera or a partner
|
6 |
|
|
# under Altera's Megafunction Partnership Program may be used only
|
7 |
|
|
# to program PLD devices (but not masked PLD devices) from Altera. Any
|
8 |
|
|
# other use of such megafunction design, netlist, support information,
|
9 |
|
|
# device programming or simulation file, or any other related documentation
|
10 |
|
|
# or information is prohibited for any other purpose, including, but not
|
11 |
|
|
# limited to modification, reverse engineering, de-compiling, or use with
|
12 |
|
|
# any other silicon devices, unless such use is explicitly licensed under
|
13 |
|
|
# a separate agreement with Altera or a megafunction partner. Title to the
|
14 |
|
|
# intellectual property, including patents, copyrights, trademarks, trade
|
15 |
|
|
# secrets, or maskworks, embodied in any such megafunction design, netlist,
|
16 |
|
|
# support information, device programming or simulation file, or any other
|
17 |
|
|
# related documentation or information provided by Altera or a megafunction
|
18 |
|
|
# partner, remains with Altera, the megafunction partner, or their respective
|
19 |
|
|
# licensors. No other licenses, including any licenses needed under any third
|
20 |
|
|
# party's intellectual property, are provided herein.
|
21 |
|
|
#####################################################################################
|
22 |
|
|
|
23 |
|
|
#####################################################################################
|
24 |
|
|
# Altera Triple-Speed Ethernet Megacore NativeLink TCL script
|
25 |
|
|
#
|
26 |
|
|
# This script should be sourced from the Quartus II TCL console prior to
|
27 |
|
|
# simulating using NativeLink
|
28 |
|
|
#
|
29 |
|
|
# Generated on Mon Nov 18 12:36:19 CET 2013
|
30 |
|
|
#
|
31 |
|
|
#####################################################################################
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
#Set time scale
|
35 |
|
|
set_global_assignment -name EDA_TIME_SCALE "1 ns" -section_id eda_simulation
|
36 |
|
|
|
37 |
|
|
#Set eda netlist writer options
|
38 |
|
|
set_global_assignment -name EDA_OUTPUT_DATA_FORMAT "VHDL" -section_id eda_simulation
|
39 |
|
|
|
40 |
|
|
#Set to work in test bench mode
|
41 |
|
|
set_global_assignment -name EDA_TEST_BENCH_ENABLE_STATUS TEST_BENCH_MODE -section_id eda_simulation
|
42 |
|
|
|
43 |
|
|
#Set testbench top level name and module name
|
44 |
|
|
set_global_assignment -name EDA_NATIVELINK_SIMULATION_TEST_BENCH esoc_port_mac_tb -section_id eda_simulation
|
45 |
|
|
set_global_assignment -name EDA_TEST_BENCH_NAME esoc_port_mac_tb -section_id eda_simulation
|
46 |
|
|
set_global_assignment -name EDA_TEST_BENCH_MODULE_NAME tb -section_id esoc_port_mac_tb
|
47 |
|
|
|
48 |
|
|
#Set design instance
|
49 |
|
|
set_global_assignment -name EDA_DESIGN_INSTANCE_NAME esoc_port_mac -section_id esoc_port_mac_tb
|
50 |
|
|
|
51 |
|
|
#Set simulation time
|
52 |
|
|
set_global_assignment -name EDA_TEST_BENCH_RUN_SIM_FOR "50 us" -section_id esoc_port_mac_tb
|
53 |
|
|
|
54 |
|
|
#Set testbench component files
|
55 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/ethgen.vhd -section_id esoc_port_mac_tb
|
56 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/ethgen2.vhd -section_id esoc_port_mac_tb
|
57 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/ethgen32.vhd -section_id esoc_port_mac_tb
|
58 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/ethmon.vhd -section_id esoc_port_mac_tb
|
59 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/ethmon2.vhd -section_id esoc_port_mac_tb
|
60 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/ethmon_32.vhd -section_id esoc_port_mac_tb
|
61 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/top_ethmon32.vhd -section_id esoc_port_mac_tb
|
62 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/mdio_reg.vhd -section_id esoc_port_mac_tb
|
63 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/mdio_slave.vhd -section_id esoc_port_mac_tb
|
64 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/top_mdio_slave.vhd -section_id esoc_port_mac_tb
|
65 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/loopback_adapter.vhd -section_id esoc_port_mac_tb
|
66 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/loopback_adapter_fifo.vhd -section_id esoc_port_mac_tb
|
67 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/timing_adapter_8.vhd -section_id esoc_port_mac_tb
|
68 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/timing_adapter_fifo_8.vhd -section_id esoc_port_mac_tb
|
69 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/timing_adapter_32.vhd -section_id esoc_port_mac_tb
|
70 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/top_ethgen8.vhd -section_id esoc_port_mac_tb
|
71 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/model/altera_ethmodels_pack.vhd -section_id esoc_port_mac_tb
|
72 |
|
|
|
73 |
|
|
#Set memory initialization files
|
74 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/esoc_port_mac/sdpm_altsyncram.hex -section_id esoc_port_mac_tb
|
75 |
|
|
|
76 |
|
|
#Set top level testbench files
|
77 |
|
|
set_global_assignment -name EDA_TEST_BENCH_FILE testbench/esoc_port_mac/esoc_port_mac_tb.vhd -section_id esoc_port_mac_tb
|
78 |
|
|
|