Skip to content
Snippets Groups Projects
  • BRONES Romain's avatar
    535b62f6
    Fix GT Wizard creation · 535b62f6
    BRONES Romain authored
    * Put configuration in a variable to print it
    * Put the quad_name in a variable, not fully used by now.
    * Set the target FPGA in the TCL.
    535b62f6
    History
    Fix GT Wizard creation
    BRONES Romain authored
    * Put configuration in a variable to print it
    * Put the quad_name in a variable, not fully used by now.
    * Set the target FPGA in the TCL.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
main.tcl 1.30 KiB
################################################################################
# Main tcl for the module
################################################################################

# ==============================================================================
proc init {} {

    # Configuration
    # TODO Follow FWK
    # variable quad_name
    # set quad_name X0Y4
}

# ==============================================================================
proc setSources {} {
  variable Vhdl
  lappend Vhdl ../hdl/combpm_protocol_electron.vhd
  lappend Vhdl ../hdl/top_combpm_electron.vhd
}

# ==============================================================================
proc setAddressSpace {} {
}

# ==============================================================================
proc doOnCreate {} {
  variable Vhdl
  addSources Vhdl

  # TODO sould probably get that part number from the project configuration
  set fpga_part "xczu11eg-ffvc1760-2L-e"
  set_property part ${fpga_part} [current_project]
  set_property target_language VHDL [current_project]

  # Create GT wizard IP
  source ../tcl/combpm_gtwizard.tcl
}

# ==============================================================================
proc doOnBuild {} {
}

# ==============================================================================
proc setSim {} {
}