module Tcasex(ADDRESS,A,B);
input[4:0] ADDRESS;
output A;
output B;
reg[4:0] ADDRESS;
wire A=0;
wire B=0;
assign A=0;
assign B=0;
casex(ADDRESS)
5'b00xxx:A=1;
5'b01xxx:B=1;
5'b10x00,5'b11x00:
begin
A=1;
B=1;
end
default: A=0,B=1;
endcase
endmodule
用modelsim编译时,老是报错:
** Error: F:/code/Tcasex.v(6): Port mode is incompatible with declaration: ADDRESS
** Error: F:/code/Tcasex.v(23): near "casex": syntax error, unexpected "casex" |