summaryrefslogtreecommitdiff
path: root/init.tcl
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-23 21:18:21 -0700
committerJulian Blake Kongslie2021-03-23 21:18:21 -0700
commit39b70c676387bfe06bcc931d3795afc11fd8f137 (patch)
tree00a832c1ce7ece7033c0398a82d6a67b09781e43 /init.tcl
parentReplace dibble dabble algorithm with variant that tests after the add. (diff)
downloadtoycpu-39b70c676387bfe06bcc931d3795afc11fd8f137.tar.xz
Changes for Windows-friendly builds.
Diffstat (limited to 'init.tcl')
-rw-r--r--init.tcl24
1 files changed, 16 insertions, 8 deletions
diff --git a/init.tcl b/init.tcl
index 66cea3f..33897e5 100644
--- a/init.tcl
+++ b/init.tcl
@@ -1,18 +1,26 @@
1global quartus
2
3project_new toycpu -revision toycpu -overwrite 1project_new toycpu -revision toycpu -overwrite
4 2
5set_global_assignment -name DEVICE 10CL025YU256I7G 3set_global_assignment -name DEVICE 10CL025YU256I7G
6 4
7set_global_assignment -name TOP_LEVEL_ENTITY top 5set_global_assignment -name TOP_LEVEL_ENTITY top
6set_global_assignment -name VERILOG_INPUT_VERSION SYSTEMVERILOG_2005
7set_global_assignment -name VERILOG_MACRO "SYNTHESIS=1"
8
9set_location_assignment PIN_E1 -to clk
10set_location_assignment PIN_J15 -to reset_n
8 11
9set_location_assignment -to clk PIN_E1 12set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to clk
10set_location_assignment -to reset_n PIN_J15 13set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to reset_n
11 14
12create_base_clock -fmax "50 MHz" -target clk clock_50m 15create_base_clock -fmax "50 MHz" clk
13 16
14foreach arg $quartus(args) { 17set_global_assignment -name CDF_FILE programmer.cdf
15 set_global_assignment -name VERILOG_FILE $arg 18set_global_assignment -name HEX_FILE rom.hex
16} 19set_global_assignment -name SDC_FILE clocks.sdc
20set_global_assignment -name VERILOG_FILE bin2bcd.sv
21set_global_assignment -name VERILOG_FILE fibseq.sv
22set_global_assignment -name VERILOG_FILE jtag_uart.sv
23set_global_assignment -name VERILOG_FILE ntoa.sv
24set_global_assignment -name VERILOG_FILE top.sv
17 25
18project_close 26project_close