summaryrefslogtreecommitdiff
path: root/init.tcl
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-23 12:22:38 -0700
committerJulian Blake Kongslie2021-03-23 12:22:38 -0700
commit5d95607192380be5cc62592efac52814a0e090df (patch)
tree656bc3ec79180a89f355681e454808ebce6eb6d9 /init.tcl
downloadtoycpu-5d95607192380be5cc62592efac52814a0e090df.tar.xz
Initial commit.
Diffstat (limited to '')
-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