In reply to Jung Ik Moon:
Then you need to use the package for each block. All you need to do is replace the
`include “blockA.sv” with
import blockA::*;. Then change your scripts to compile the packages. There’s no harm in compiling all the packages even if you only use some of them.