-
Notifications
You must be signed in to change notification settings - Fork 2
/
quartus.tcl
44 lines (36 loc) · 1.68 KB
/
quartus.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package require ::quartus::project
package require ::quartus::flow
project_new fejkon -overwrite
source ../config.tcl
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 20.1.0
set_global_assignment -name LAST_QUARTUS_VERSION "20.1.0 Standard Edition"
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 256
set_global_assignment -name QSYS_FILE ../fejkon.qsys
set_global_assignment -name SDC_FILE ../de5net.sdc
set_global_assignment -name NUM_PARALLEL_PROCESSORS [exec nproc]
set_global_assignment -name RAPID_RECOMPILE_MODE ON
set_global_assignment -name TIMEQUEST_REPORT_SCRIPT ../timing.tcl
if {$CONFIG_AGGRESSIVE_OPT == "y"} {
set_global_assignment -name OPTIMIZATION_MODE "AGGRESSIVE PERFORMANCE"
set_global_assignment -name ROUTER_CLOCKING_TOPOLOGY_ANALYSIS ON
set_global_assignment -name PHYSICAL_SYNTHESIS_EFFORT EXTRA
}
set_global_assignment -name FLOW_ENABLE_POWER_ANALYZER ON
# NOTE: These are defaults, might be better values for the DE5-Net?
set_global_assignment -name POWER_PRESET_COOLING_SOLUTION "23 MM HEAT SINK WITH 200 LFPM AIRFLOW"
set_global_assignment -name POWER_BOARD_THERMAL_MODEL "NONE (CONSERVATIVE)"
source ../de5net.tcl
if {$CONFIG_STP == "y"} {
set_global_assignment -name ENABLE_SIGNALTAP ON
set_global_assignment -name USE_SIGNALTAP_FILE fejkon.configured.stp
set_global_assignment -name SIGNALTAP_FILE fejkon.configured.stp
}
# Commit assignments
export_assignments
if {$CONFIG_STP == "y"} {
qexec "quartus_stp fejkon --stp_file fejkon.configured.stp --enable"
}
execute_flow -compile