From 39b70c676387bfe06bcc931d3795afc11fd8f137 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 23 Mar 2021 21:18:21 -0700 Subject: Changes for Windows-friendly builds. --- init.tcl | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'init.tcl') diff --git a/init.tcl b/init.tcl index 66cea3f..33897e5 100644 --- a/init.tcl +++ b/init.tcl @@ -1,18 +1,26 @@ -global quartus - project_new toycpu -revision toycpu -overwrite set_global_assignment -name DEVICE 10CL025YU256I7G set_global_assignment -name TOP_LEVEL_ENTITY top +set_global_assignment -name VERILOG_INPUT_VERSION SYSTEMVERILOG_2005 +set_global_assignment -name VERILOG_MACRO "SYNTHESIS=1" + +set_location_assignment PIN_E1 -to clk +set_location_assignment PIN_J15 -to reset_n -set_location_assignment -to clk PIN_E1 -set_location_assignment -to reset_n PIN_J15 +set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to clk +set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to reset_n -create_base_clock -fmax "50 MHz" -target clk clock_50m +create_base_clock -fmax "50 MHz" clk -foreach arg $quartus(args) { - set_global_assignment -name VERILOG_FILE $arg -} +set_global_assignment -name CDF_FILE programmer.cdf +set_global_assignment -name HEX_FILE rom.hex +set_global_assignment -name SDC_FILE clocks.sdc +set_global_assignment -name VERILOG_FILE bin2bcd.sv +set_global_assignment -name VERILOG_FILE fibseq.sv +set_global_assignment -name VERILOG_FILE jtag_uart.sv +set_global_assignment -name VERILOG_FILE ntoa.sv +set_global_assignment -name VERILOG_FILE top.sv project_close -- cgit v1.2.3