summaryrefslogtreecommitdiff
path: root/init.tcl
blob: 4640ea1a2bd6b3241e0f1c768e872f9eb1ff7505 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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_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" clk

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
set_global_assignment -name VERILOG_FILE utils.svh

project_close