Forum Discussion

EIbra's avatar
EIbra
Icon for New Contributor rankNew Contributor
7 years ago

How to `include file in the IP Verilog source?

I have project with Qsys and custom IP

IP has main Verilog file comm_channel_control.sv with lines

module (...)
...
`include "comm_channel_control_params.svh"
...
endmodule

main module and "comm_channel_control_params.svh" are in the folder $PROJECT_FOLDER/ip/comm_channel_control/

Analysis&Synthesis says

Error (10054): Verilog HDL File I/O error at comm_channel_control.sv(45): can't open Verilog Design File "comm_channel_control_params.svh"

How can I use `include in sources of ip ?

2 Replies

  • EIbra's avatar
    EIbra
    Icon for New Contributor rankNew Contributor

    Solved,

    "Component Editor" window -> "Files" tab -> "Add File..."

    Add files to include