Error with reference to scalar wire 'reset' is not a legal reg or variable lvalue
If your state machine needs to set reset, then you need to specify it as an output reg reset of your module. Outputs default to nets unless you add a data type like reg. Then they are treated like variable that can be procedurally assigned from your `always1 block.