Rework previous patch to use the correct method.
Rework previous patch to use the correct method.

CastMi/iverilog,themperek/iverilog,CastMi/iverilog,CastMi/iverilog,themperek/iverilog,themperek/iverilog