Closed Andful closed 1 month ago
The same behavior seem to occur with slang
.
By default each file is considered its own compilation unit. If you would like them to be concatenated together you can use --single-unit
. See: https://sv-lang.com/user-manual.html#compilation-units
Ah thanks!
Describe the bug When running
slang-tidy
, it does not find functions from different files.To Reproduce Consider the following code snippet.
If I run
slang-tidy
on the code in its entirety within a file,slang-tidy
does not complain. If I puttop
intop.sv
andmin
inmin.sv
and run either:or
slang-tidy
complains with:Additional context Tested it on v6.0 ( commit 7bcff26 ), with a self-compiled alpine docker image. The docker image can be run with:
Not sure if it is intended behavior, but it differs in behavior from
iverilog
.