data/full_repos/permissive/158984095/Homework4/Question2_FFT/matlabgen.v
1: b'%Error: data/full_repos/permissive/158984095/Homework4/Question2_FFT/matlabgen.v:15: syntax error, unexpected \'(\', expecting IDENTIFIER\nFFT(a_r,a_i,b_r,b_i,w_r,w_i,x_r,x_i,y_r,y_i);\n    ^~~\n%Warning-STMTDLY: data/full_repos/permissive/158984095/Homework4/Question2_FFT/matlabgen.v:20: Unsupported: Ignoring delay on this delayed statement.\n# 5 clk=~clk;\n^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/158984095/Homework4/Question2_FFT/matlabgen.v:37: Unsupported: Ignoring delay on this delayed statement.\n#10;\n^\n%Error: Exiting due to 1 error(s), 2 warning(s)\n'
module matlabgen();

reg [15:0] a_i;
reg [15:0] a_r;
reg [15:0] b_i;
reg [15:0] b_r;
reg [15:0] w_r;
reg [15:0] w_i;
wire [15:0] x_r;
wire [15:0] x_i;
wire [15:0] y_r;
wire [15:0] y_i;

integer i,f;
FFT(a_r,a_i,b_r,b_i,w_r,w_i,x_r,x_i,y_r,y_i);

initial begin
clk=1'b1;
forever begin
# 5 clk=~clk;
end
end

initial begin

f=$fopen("compmulttry.m","w");
$display("Beginning Simulation");
a_i=16'b0000000111111111;
a_r=16'b0000100000000000;
b_i=16'b1111111111111111;
b_r=16'b1000000111111111;
w_r=16'b0111111111111111;
w_i=16'b1000000000000000;


for (i=1;i<100;i=i+1) begin
#10;
$fwrite(f,"a_r(%d)=%d;a_i(%d)=%d;b_r(%d)=%d;b_i(%d)=%d;w_r(%d)=%d;w_i(%d)=%d;x_r(%d)=%d;x_i(%d)=%d;y_r(%d)=%d;y_i(%d)=%d;\n",i,$signed(a_r),i,$signed(a_i),i,$signed(b_r),i,$signed(b_i),i,$signed(w_r),i,$signed(w_i),i,$signed(x_r),i,$signed(x_i),i,$signed(y_r),i,$signed(y_i));

a_i=a_i + 16'b0000000000000001;
a_r=a_r + 16'b0000000000000001;
b_i=b_i - 16'b0000000000000001;
b_r=b_r - 16'b0000000000000001;
end


$fclose(f);

end
endmodule
module matlabgen();


reg [15:0] a_i;
reg [15:0] a_r;
reg [15:0] b_i;
reg [15:0] b_r;
reg [15:0] w_r;
reg [15:0] w_i;
wire [15:0] x_r;
wire [15:0] x_i;
wire [15:0] y_r;
wire [15:0] y_i;

integer i,f;
FFT(a_r,a_i,b_r,b_i,w_r,w_i,x_r,x_i,y_r,y_i);

initial begin
clk=1'b1;
forever begin
# 5 clk=~clk;
end
end

initial begin

f=$fopen("compmulttry.m","w");
$display("Beginning Simulation");
a_i=16'b0000000111111111;
a_r=16'b0000100000000000;
b_i=16'b1111111111111111;
b_r=16'b1000000111111111;
w_r=16'b0111111111111111;
w_i=16'b1000000000000000;


for (i=1;i<100;i=i+1) begin
#10;
$fwrite(f,"a_r(%d)=%d;a_i(%d)=%d;b_r(%d)=%d;b_i(%d)=%d;w_r(%d)=%d;w_i(%d)=%d;x_r(%d)=%d;x_i(%d)=%d;y_r(%d)=%d;y_i(%d)=%d;\n",i,$signed(a_r),i,$signed(a_i),i,$signed(b_r),i,$signed(b_i),i,$signed(w_r),i,$signed(w_i),i,$signed(x_r),i,$signed(x_i),i,$signed(y_r),i,$signed(y_i));

a_i=a_i + 16'b0000000000000001;
a_r=a_r + 16'b0000000000000001;
b_i=b_i - 16'b0000000000000001;
b_r=b_r - 16'b0000000000000001;
end


$fclose(f);

end
endmodule