Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Including QIP from custum_ip_hw.TCL

I have got to get rid of any absolute path and change it to relative path.

so i went through all my custom sopc components i did and added a QIP that should add all those files *.v *.mif ... this sopc component needs.

such a QIP looks like

--- Quote Start ---

set_global_assignment -name SEARCH_PATH [file join $::quartus(qip_path) "." ]

set_global_assignment -name MISC_FILE [file join $::quartus(qip_path) Sopc_Uart_Fifo_Register.qip ]

set_global_assignment -name MISC_FILE [file join $::quartus(qip_path) Sopc_Uart_Fifo_M4K.qip ]

set_global_assignment -name MISC_FILE [file join $::quartus(qip_path) Sopc_Uart_Fifo_M9K.qip ]

set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) "Sopc_Uart_RxFifo.v"]

set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) "Sopc_Uart_TxFifo.v"]

set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) "sopc_uart_rxd.v"]

set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) "sopc_uart_txd.v"]

--- Quote End ---

now i would like to setup quartus / sopc in a way that whenever such a custom component is included all QIPs for this component are used.

with the sopc component editor i had included the qip file, but it is not used /added

so i added this file manualy into the quartus project settings dialog (what is not what i want, as this is not automatically)

now quartus lists only my 4 verilog *.v, but none of the files from the QIP that are listed inside my QIP

question, does anybody know how i must setup my custom component (via TCL?) that all QIP and SDC are included and used without manualy adding them to the project whenever such a custom ip is used ????

thanks in advance.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    there was a typo mistake.

    it should be

    --- Quote Start ---

    set_global_assignment -name qip_FILE [file join $::quartus(qip_path) Sopc_Uart_Fifo_Register.qip ]

    --- Quote End ---

    now the contents of the qip are listed and included ...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Update

    the *_hw.tcl file must have

    add_file SOPC_Uart.v SYNTHESIS

    add_file SOPC_Uart.qip SYNTHESIS

    then after sopc builder, the search paths mentioned inside the qip are added to the quartus liberary settings

    also the qip generated by the sopc builder points to these qip and includes these files.