总是会有这样的错误
Error (10170): Verilog HDL syntax error at mycompare.v(2) near text "8"; expecting ";"
module mycompare(a,b,equal);
parameter size 8 ;
input [7:0]a;
input [7:0] b;
output [1:0] equal;
reg [1:0] equal;
always @(a or b)
begin
if (a==b) equal=1;
else if (a>b) equal=2;
else (a<b) equal=3 ;
end
endmodule