Generate verilog code from struct &state machine (FSM)