forked from nand2mario/nestang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.tcl
executable file
·55 lines (51 loc) · 2.07 KB
/
build.tcl
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
add_file -type verilog "src/MicroCode.v"
add_file -type verilog "src/apu.v"
add_file -type verilog "src/autofire.v"
add_file -type verilog "src/compat.v"
add_file -type verilog "src/cpu.v"
add_file -type verilog "src/dualshock_controller.v"
add_file -type verilog "src/game_loader.v"
add_file -type verilog "src/gowin_clkdiv.v"
add_file -type verilog "src/hdmi2/audio_clock_regeneration_packet.sv"
add_file -type verilog "src/hdmi2/audio_info_frame.sv"
add_file -type verilog "src/hdmi2/audio_sample_packet.sv"
add_file -type verilog "src/hdmi2/auxiliary_video_information_info_frame.sv"
add_file -type verilog "src/hdmi2/hdmi.sv"
add_file -type verilog "src/hdmi2/packet_assembler.sv"
add_file -type verilog "src/hdmi2/packet_picker.sv"
add_file -type verilog "src/hdmi2/serializer.sv"
add_file -type verilog "src/hdmi2/source_product_description_info_frame.sv"
add_file -type verilog "src/hdmi2/tmds_channel.sv"
add_file -type verilog "src/hw_sound.v"
add_file -type verilog "src/hw_uart.v"
add_file -type verilog "src/memory_controller.v"
add_file -type verilog "src/mmu.v"
add_file -type verilog "src/nes.v"
add_file -type verilog "src/nes2hdmi.sv"
add_file -type verilog "src/nestang_top.sv"
add_file -type verilog "src/ppu.v"
add_file -type verilog "src/sd_file_list_reader.v"
add_file -type verilog "src/sd_loader.v"
add_file -type verilog "src/sd_reader.sv"
add_file -type verilog "src/sdcmd_ctrl.sv"
add_file -type verilog "src/sdram.v"
add_file -type verilog "src/uart_tx_V2.v"
add_file -type verilog "src/usb_hid_host.v"
add_file -type verilog "src/usb_hid_host_rom.v"
if {$dev eq "nano20k"} {
set_device GW2AR-LV18QN88C8/I7 -device_version C
} elseif {$dev eq "primer25k"} {
set_device GW5A-LV25MG121NC1/I0 -device_version A
}
set_option -synthesis_tool gowinsynthesis
set_option -output_base_name nestang_$dev
set_option -top_module nestang_top
set_option -verilog_std sysv2017
set_option -rw_check_on_ram 1
set_option -use_mspi_as_gpio 1
set_option -use_ready_as_gpio 1
set_option -use_done_as_gpio 1
set_option -use_i2c_as_gpio 1
set_option -use_cpu_as_gpio 1
set_option -multi_boot 1
run all