summaryrefslogtreecommitdiff
path: root/init.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'init.tcl')
-rw-r--r--init.tcl18
1 files changed, 18 insertions, 0 deletions
diff --git a/init.tcl b/init.tcl
new file mode 100644
index 0000000..66cea3f
--- /dev/null
+++ b/init.tcl
@@ -0,0 +1,18 @@
1global quartus
2
3project_new toycpu -revision toycpu -overwrite
4
5set_global_assignment -name DEVICE 10CL025YU256I7G
6
7set_global_assignment -name TOP_LEVEL_ENTITY top
8
9set_location_assignment -to clk PIN_E1
10set_location_assignment -to reset_n PIN_J15
11
12create_base_clock -fmax "50 MHz" -target clk clock_50m
13
14foreach arg $quartus(args) {
15 set_global_assignment -name VERILOG_FILE $arg
16}
17
18project_close