我試試這個代碼,但是當我編譯它,我收到此錯誤: Illegal assignment pattern. The number of elements (2) doesn't match with the type's width (16)
。 module(output [15:0] O);
reg [7:0] a, b;
assign O = {a, b};
endmo
我遇到問題,找出從函數返回動態結構數組的語法。我有以下小例子: `timescale 1ns/10ps
typedef struct{
string Name;
int Age;
} PersonType;
function PersonType A [] getPeopleInfo();
automatic string Name [50];//Max