recreate.tcl 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. set DSN_ROOT [file normalize [file join [file dirname [info script]] "."]]
  2. create_project -name CP2444v1_FPGA -dir $::DSN_ROOT/CP2444v1_FPGA_PROJ -pn GW1N-UV9QN88C6/I5 -device_version NA -force
  3. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/ClkGen/ClkGenCp2444v1.v"
  4. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/ClkGen/GowinClkDiv3dot5/GowinClkDiv3dot5.v"
  5. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/ClkGen/GowinClkDiv8/GowinClkDiv8.v"
  6. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/ClkGen/GowinInternalOsc25MHz/GowinInternalOsc25MHz.v"
  7. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/ClkGen/GowinPllFirst/GowinPllFirst.v"
  8. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/FifoCtrl/FifoCtrl.v"
  9. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/Gpio1Ctrl/Gpio1Ctrl.v"
  10. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/InitRst/InitRst.v"
  11. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/InterfaceArbiter/InterfaceArbiterCp2444v1.v"
  12. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/PacketAnalyzer1Mosi/PacketAnalyzer1MosiCp2444v1.v"
  13. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/PacketAnalyzer4Mosi/PacketAnalyzer4MosiCp2444v1.v"
  14. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/SpiM/SpiM.v"
  15. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/Top/TopCp2444v1.v"
  16. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/WrapFifoChain/AttCtrlWrapper.v"
  17. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/WrapFifoChain/FifoShReg16/FifoShReg16.v"
  18. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/WrapFifoChain/FifoShReg8/FifoShReg8.v"
  19. add_file -type verilog "$::DSN_ROOT/CP2444v1_FPGA/src/src/WrapFifoChain/SwCtrlWrapper.v"
  20. add_file -type cst "$::DSN_ROOT/CP2444v1_FPGA/src/constr/Cp2444v1.cst"
  21. add_file -type sdc "$::DSN_ROOT/CP2444v1_FPGA/src/constr/Cp2444v1.sdc"
  22. set_option -synthesis_tool gowinsynthesis
  23. set_option -output_base_name CP2444v1_FPGA_PROJ
  24. set_option -global_freq default
  25. set_option -top_module TopCp2444v1
  26. set_option -verilog_std v2001
  27. set_option -vhdl_std vhd1993
  28. set_option -print_all_synthesis_warning 0
  29. set_option -disable_io_insertion 0
  30. set_option -looplimit 2000
  31. set_option -rw_check_on_ram 0
  32. set_option -gen_sdf 0
  33. set_option -gen_io_cst 0
  34. set_option -vccaux 3.3
  35. set_option -gen_ibis 0
  36. set_option -gen_posp 0
  37. set_option -gen_text_timing_rpt 0
  38. set_option -gen_verilog_sim_netlist 0
  39. set_option -gen_vhdl_sim_netlist 0
  40. set_option -show_init_in_vo 0
  41. set_option -show_all_warn 0
  42. set_option -timing_driven 1
  43. set_option -ireg_in_iob 1
  44. set_option -oreg_in_iob 1
  45. set_option -ioreg_in_iob 1
  46. set_option -replicate_resources 1
  47. set_option -cst_warn_to_error 1
  48. set_option -rpt_auto_place_io_info 0
  49. set_option -correct_hold_violation 1
  50. set_option -place_option 2
  51. set_option -route_option 1
  52. set_option -clock_route_order 0
  53. set_option -route_maxfan 23
  54. set_option -use_jtag_as_gpio 0
  55. set_option -use_sspi_as_gpio 1
  56. set_option -use_mspi_as_gpio 0
  57. set_option -use_ready_as_gpio 0
  58. set_option -use_done_as_gpio 0
  59. set_option -use_reconfign_as_gpio 0
  60. set_option -use_mode_as_gpio 0
  61. set_option -use_i2c_as_gpio 0
  62. set_option -use_cpu_as_gpio 0
  63. set_option -power_on_reset_monitor 1
  64. set_option -bit_format bin
  65. set_option -bit_crc_check 1
  66. set_option -bit_compress 0
  67. set_option -bit_encrypt 0
  68. set_option -bit_encrypt_key 00000000000000000000000000000000
  69. set_option -bit_security 1
  70. set_option -bit_incl_bsram_init 1
  71. set_option -bg_programming off
  72. set_option -hotboot 0
  73. set_option -i2c_slave_addr 00
  74. set_option -secure_mode 0
  75. set_option -loading_rate default
  76. set_option -program_done_bypass 0
  77. set_option -wakeup_mode 0
  78. set_option -user_code default
  79. set_option -unused_pin default
  80. set_option -multi_boot 1
  81. set_option -multiboot_address_width 24
  82. set_option -multiboot_mode normal
  83. set_option -multiboot_spi_flash_address 00000000
  84. set_option -mspi_jump 0
  85. set_option -turn_off_bg 0
  86. set_option -vccx 3.3
  87. set_option -seu_handler 0
  88. set_option -seu_handler_checksum 0
  89. set_option -seu_handler_mode auto
  90. set_option -error_detection false
  91. set_option -error_detection_correction false
  92. set_option -stop_seu_handler false
  93. set_option -error_injection false
  94. set_option -ext_cclk false
  95. set_option -ext_cclk_div