Skip to content

Commit

Permalink
fix tcl build files
Browse files Browse the repository at this point in the history
  • Loading branch information
nand2mario committed Apr 5, 2024
1 parent fbd0bab commit 3499840
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 16 deletions.
43 changes: 29 additions & 14 deletions build.tcl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

add_file -type verilog "src/MicroCode.v"
add_file -type verilog "src/EEPROM_24C0x.sv"
add_file -type verilog "src/NESGamepad.v"
add_file -type verilog "src/apu.v"
add_file -type verilog "src/autofire.v"
add_file -type verilog "src/cart.sv"
add_file -type verilog "src/compat.v"
add_file -type verilog "src/cpu.v"
add_file -type verilog "src/dpram.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"
Expand All @@ -17,24 +17,39 @@ 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/iosys/gowin_dpb_menu.v"
add_file -type verilog "src/iosys/iosys.v"
add_file -type verilog "src/iosys/picorv32.v"
add_file -type verilog "src/iosys/simplespimaster.v"
add_file -type verilog "src/iosys/simpleuart.v"
add_file -type verilog "src/iosys/spi_master.v"
add_file -type verilog "src/iosys/spiflash.v"
add_file -type verilog "src/iosys/textdisp.v"
add_file -type verilog "src/mappers/FDS.sv"
add_file -type verilog "src/mappers/JYCompany.sv"
add_file -type verilog "src/mappers/MMC1.sv"
add_file -type verilog "src/mappers/MMC2.sv"
add_file -type verilog "src/mappers/MMC3.sv"
add_file -type verilog "src/mappers/MMC5.sv"
add_file -type verilog "src/mappers/Namco.sv"
add_file -type verilog "src/mappers/Sachen.sv"
add_file -type verilog "src/mappers/Sunsoft.sv"
add_file -type verilog "src/mappers/generic.sv"
add_file -type verilog "src/mappers/iir_filter.v"
add_file -type verilog "src/mappers/misc.sv"
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/sdram_nes.v"
add_file -type verilog "src/t65/T65.v"
add_file -type verilog "src/t65/T65_ALU.v"
add_file -type verilog "src/t65/T65_MCode.v"
add_file -type verilog "src/t65/T65_Pack.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"
add_file -type verilog "src/NESGamepad.v"
add_file -type verilog "src/mapLoopy.v"

if {$dev eq "nano20k"} {
set_device GW2AR-LV18QN88C8/I7 -device_version C
Expand Down
3 changes: 2 additions & 1 deletion nano20k.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ set dev "nano20k"

add_file src/tang_nano_20k/config.sv
add_file src/tang_nano_20k/gowin_pll_hdmi.v
add_file src/tang_nano_20k/gowin_pll_usb.v
add_file src/tang_nano_20k/gowin_pll_nes.v
# add_file src/tang_nano_20k/gowin_pll_usb.v
add_file -type cst "src/tang_nano_20k/nestang.cst"
add_file -type sdc "src/tang_nano_20k/nestang.sdc"

Expand Down
3 changes: 2 additions & 1 deletion primer25k.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ set dev "primer25k"
add_file src/tang_primer_25k/config.sv
add_file src/tang_primer_25k/gowin_pll_27.v
add_file src/tang_primer_25k/gowin_pll_hdmi.v
add_file src/tang_primer_25k/gowin_pll_usb.v
add_file src/tang_primer_25k/gowin_pll_nes.v
# add_file src/tang_primer_25k/gowin_pll_usb.v
add_file -type cst "src/tang_primer_25k/nestang.cst"
add_file -type sdc "src/tang_primer_25k/nestang.sdc"

Expand Down

0 comments on commit 3499840

Please sign in to comment.