data/full_repos/permissive/203165721/tb_lms.v
 line:25: before: "$"
1: b'%Warning-STMTDLY: data/full_repos/permissive/203165721/tb_lms.v:22: Unsupported: Ignoring delay on this delayed statement.\n #100\n ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/203165721/tb_lms.v:24: Unsupported: Ignoring delay on this delayed statement.\n #6000000\n ^\n%Warning-STMTDLY: data/full_repos/permissive/203165721/tb_lms.v:28: Unsupported: Ignoring delay on this delayed statement.\nalways #10 clk = ~clk;\n       ^\n%Warning-STMTDLY: data/full_repos/permissive/203165721/tb_lms.v:64: Unsupported: Ignoring delay on this delayed statement.\n       #160;\n       ^\n%Warning-STMTDLY: data/full_repos/permissive/203165721/tb_lms.v:78: Unsupported: Ignoring delay on this delayed statement.\n       #160;\n       ^\n%Warning-STMTDLY: data/full_repos/permissive/203165721/tb_lms.v:91: Unsupported: Ignoring delay on this delayed statement.\n       #160;\n       ^\n%Error: data/full_repos/permissive/203165721/tb_lms.v:99: Unsupported: $fopen with multichannel descriptor.  Add ,"w" as second argument to open a file descriptor.\n    file_out = $fopen("lms_err.txt");\n               ^~~~~~\n%Error: data/full_repos/permissive/203165721/tb_lms.v:118: Unsupported or unknown PLI call: $fsdbDumpfile\n $fsdbDumpfile("tb.fsdb");\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/203165721/tb_lms.v:119: Unsupported or unknown PLI call: $fsdbDumpvars\n $fsdbDumpvars;\n ^~~~~~~~~~~~~\n%Error: Exiting due to 3 error(s), 6 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module tb_lms;

reg	clk;
reg rst_n;
reg [15:0] d;
reg [15:0] x;
reg [ 3:0] u;
reg [15:0] signal;
wire [15:0] y;
wire [15:0] err;
wire [15:0] out;

initial begin
	clk = 0;
	rst_n = 0;
	signal = 0;
	d = 0;
	x = 0;
	u = 0;
	#100
	rst_n = 1;
	#6000000
	$finish;
end

always #10 clk = ~clk;

lms



lms_inst
(
	.clk	(clk	),
	.rst_n	(rst_n	),
	
	.en 	(1'b1	),
	.din		(d		),
	.xin		(x		),
	.u		(4'd6	),
	.yout		(y		),
	.err    	(err    ),
	.update		()
);

parameter datalen = 32000;

integer k,j,m;
reg [15:0] stimulus_s[1:datalen];
reg [15:0] stimulus_x[1:datalen];
reg [15:0] stimulus_d[1:datalen];

initial
begin
   $readmemb("x_in.txt",stimulus_x);
   k=0;
   repeat(datalen)
    begin

       k=k+1;
       x = stimulus_x[k];
       #160;
    end    
end


initial
begin
   $readmemb("d_in.txt",stimulus_d);
   j =0;
   repeat(datalen)
    begin

         j=j+1;
         d = stimulus_d[j]; 
       #160;
    end    
end

initial
begin
   $readmemb("signal.txt",stimulus_s);
   m=0;
   repeat(datalen)
    begin

       m=m+1;
       signal = stimulus_s[m];
       #160;
    end    
end


integer file_out;
initial
begin
    file_out = $fopen("lms_err.txt");
    if(!file_out)
        begin
            $display("could not open file");
            $finish;  
        end 
end



wire rst_write;
wire signed[15:0] yout_final;
assign yout_final = err;


always @ (posedge clk)
    $fdisplay(file_out,"%d",yout_final);
	
initial begin
	$fsdbDumpfile("tb.fsdb");
	$fsdbDumpvars;
end


endmodule
module tb_lms;


reg	clk;
reg rst_n;
reg [15:0] d;
reg [15:0] x;
reg [ 3:0] u;
reg [15:0] signal;
wire [15:0] y;
wire [15:0] err;
wire [15:0] out;

initial begin
	clk = 0;
	rst_n = 0;
	signal = 0;
	d = 0;
	x = 0;
	u = 0;
	#100
	rst_n = 1;
	#6000000
	$finish;
end

always #10 clk = ~clk;

lms



lms_inst
(
	.clk	(clk	),
	.rst_n	(rst_n	),
	
	.en 	(1'b1	),
	.din		(d		),
	.xin		(x		),
	.u		(4'd6	),
	.yout		(y		),
	.err    	(err    ),
	.update		()
);

parameter datalen = 32000;

integer k,j,m;
reg [15:0] stimulus_s[1:datalen];
reg [15:0] stimulus_x[1:datalen];
reg [15:0] stimulus_d[1:datalen];

initial
begin
   $readmemb("x_in.txt",stimulus_x);
   k=0;
   repeat(datalen)
    begin

       k=k+1;
       x = stimulus_x[k];
       #160;
    end    
end


initial
begin
   $readmemb("d_in.txt",stimulus_d);
   j =0;
   repeat(datalen)
    begin

         j=j+1;
         d = stimulus_d[j]; 
       #160;
    end    
end

initial
begin
   $readmemb("signal.txt",stimulus_s);
   m=0;
   repeat(datalen)
    begin

       m=m+1;
       signal = stimulus_s[m];
       #160;
    end    
end


integer file_out;
initial
begin
    file_out = $fopen("lms_err.txt");
    if(!file_out)
        begin
            $display("could not open file");
            $finish;  
        end 
end



wire rst_write;
wire signed[15:0] yout_final;
assign yout_final = err;


always @ (posedge clk)
    $fdisplay(file_out,"%d",yout_final);
	
initial begin
	$fsdbDumpfile("tb.fsdb");
	$fsdbDumpvars;
end


endmodule