Fix bug where func had to be declared before use
Fix bug where func had to be declared before use

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