Syntax error near “generate” and “endgenerate” in verilog
问题 I am new in Verilog and I am trying to implement single precision floating point addition-subtraction using verilog. I am getting an error which I am unable to correct. Can anyone please help me? module addModule(Rs,Re,Rm,As,Ae,Am,Bs,Be,Bm); //Declarations of ports Rs,Re,Rm; As,Bs; input [7:0] Ae,Be; input [22:0] Am,Bm; reg [7:0] Re; reg [22:0] Rm; reg Rs; //wire declarations. wire [23:-1] C; assign C[-1] = 0; wire [23:1] sum; //variable declaration. genvar count; always @(*) begin //Add two