我已经尝试使用以下代码:
module try;
int a[8];
initial
begin
a = 8'hCC;
$display(a);
end
endmodule
这给出了错误:
Incompatible complex type assignment
Type of source expression is incompatible with type of target expression.
Mismatching types cannot be used in assignments, initializations and
instantiations. The type of the target is 'bit$[0:7]', while the type of the
source is 'bit[7:0]'.