Forum Discussion
david_
New Contributor
5 years agoNested SystemVerilog/Verilog Include Files
Hi,
I am importing a SystemVerilog project into a Cyclone 10GX using Quartus Pro 21.2, but unfortunately I am getting some issues.
This project has include files to define various parameters. On...
- 5 years ago
Hi,
I think the problem is the fact that you declared a typedef in a header file. Because they're usually declared in a verilog HDL file before the module declaration, but I don't think that's what you want to do.
Header files are problematic in general, which is why SystemVerilog introduced us to packages: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6469140
You should use packages instead of `include. You can populate packages with parameters too.
Regards,
Nurina
sstrell
Super Contributor
5 years agoShouldn't the paths be "../include" etc., not "../../include"? You're going up two levels instead of 1.
- david_5 years ago
New Contributor
Hi, no the synthesis script creates a work folder which it cd's into to put all the generated project files. From there it is 2 levels up.