I would like to change parameter value in Verilog depending on 3 bit digital input pin value. Here is a sample from my verilog code.
paramter real C_IP=0;
 always @ (reg_DACIP)
   begin
     case (reg_DACIP)
      3'b000 : C_IP = 0.8;
      3'b001 : C_IP = 0.6;
      3'b010 : C_IP = 0.4;
      3'b011 : C_IP = 0.2;
      3'b100 : C_IP = 0.0;
      3'b101 : C_IP = -0.2;
      3'b110 : C_IP = -0.4;
      3'b111 : C_IP = -0.6;
    endcase
end 
When I compile I get this error:
ncvlog: *E,PANOTL: A parameter is not a legal lvalue [3.10(IEEE)].
      3'b001 : C_IP = 0.6;
I understand Verilog parameters are for constants, and therefore can not be changed during simulation. However what would be the best workaround over this problem?
