I download uart16550 IP from opencore.org. In the core "`include" can be compiled normally, but when i include my own file the core could not compiled normally. when I remove the "`include" and move all design files to a list, they can be compiled normally. The tool what I use is modelsim. I meet these situation many times. I don't know the reason.
do anyone tell me.
thank you very much!
Re: question about how to use "`include" in verilo
satrap said:
I download uart16550 IP from opencore.org. In the core "`include" can be compiled normally, but when i include my own file the core could not compiled normally. when I remove the "`include" and move all design files to a list, they can be compiled normally. The tool what I use is modelsim. I meet these situation many times. I don't know the reason.
do anyone tell me.
thank you very much!
Also, you can use ncverilog +incdir+path
"path" is where the files you want to include is. If you have more than one paths, you can just type them together, with "+" between them.