work around for header not included by include directive #1613
Answered
by
MikePopoloski
Snow-Crash
asked this question in
Q&A
|
I have a set of .sv files and a header.sv. These sv files have references to macros defined in header.sv, however they don't have `include header.sv. Therefore slang gives me error. I'm looking for a work around. Is there anyway to let slang look for macro definitions in header.sv? I looked at manual, -I,--include-directory [,...] does not help. -D,--define-macro seems promising. I can make a script and collect all macros in header.sv, and then provide them through command line. Does this sound reasonable? or is there any better way? |
Answered by
MikePopoloski
Dec 21, 2025
Replies: 1 comment
|
You could list the "header" directly on the command line as a normal source file, and use |
0 replies
Answer selected by
Snow-Crash
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could list the "header" directly on the command line as a normal source file, and use
--single-unitto have all the files concatenated together.