diff options
| author | Julian Blake Kongslie | 2021-03-23 21:18:21 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-03-23 21:18:21 -0700 |
| commit | 39b70c676387bfe06bcc931d3795afc11fd8f137 (patch) | |
| tree | 00a832c1ce7ece7033c0398a82d6a67b09781e43 /init.tcl | |
| parent | Replace dibble dabble algorithm with variant that tests after the add. (diff) | |
| download | toycpu-39b70c676387bfe06bcc931d3795afc11fd8f137.tar.xz | |
Changes for Windows-friendly builds.
Diffstat (limited to 'init.tcl')
| -rw-r--r-- | init.tcl | 24 |
1 files changed, 16 insertions, 8 deletions
| @@ -1,18 +1,26 @@ | |||
| 1 | global quartus | ||
| 2 | |||
| 3 | project_new toycpu -revision toycpu -overwrite | 1 | project_new toycpu -revision toycpu -overwrite |
| 4 | 2 | ||
| 5 | set_global_assignment -name DEVICE 10CL025YU256I7G | 3 | set_global_assignment -name DEVICE 10CL025YU256I7G |
| 6 | 4 | ||
| 7 | set_global_assignment -name TOP_LEVEL_ENTITY top | 5 | set_global_assignment -name TOP_LEVEL_ENTITY top |
| 6 | set_global_assignment -name VERILOG_INPUT_VERSION SYSTEMVERILOG_2005 | ||
| 7 | set_global_assignment -name VERILOG_MACRO "SYNTHESIS=1" | ||
| 8 | |||
| 9 | set_location_assignment PIN_E1 -to clk | ||
| 10 | set_location_assignment PIN_J15 -to reset_n | ||
| 8 | 11 | ||
| 9 | set_location_assignment -to clk PIN_E1 | 12 | set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to clk |
| 10 | set_location_assignment -to reset_n PIN_J15 | 13 | set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to reset_n |
| 11 | 14 | ||
| 12 | create_base_clock -fmax "50 MHz" -target clk clock_50m | 15 | create_base_clock -fmax "50 MHz" clk |
| 13 | 16 | ||
| 14 | foreach arg $quartus(args) { | 17 | set_global_assignment -name CDF_FILE programmer.cdf |
| 15 | set_global_assignment -name VERILOG_FILE $arg | 18 | set_global_assignment -name HEX_FILE rom.hex |
| 16 | } | 19 | set_global_assignment -name SDC_FILE clocks.sdc |
| 20 | set_global_assignment -name VERILOG_FILE bin2bcd.sv | ||
| 21 | set_global_assignment -name VERILOG_FILE fibseq.sv | ||
| 22 | set_global_assignment -name VERILOG_FILE jtag_uart.sv | ||
| 23 | set_global_assignment -name VERILOG_FILE ntoa.sv | ||
| 24 | set_global_assignment -name VERILOG_FILE top.sv | ||
| 17 | 25 | ||
| 18 | project_close | 26 | project_close |
