data/full_repos/permissive/158608551/basic/top.sv
 line:2: before: ":"
1: b'%Error: data/full_repos/permissive/158608551/basic/top.sv:2: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\n import uvm_pkg::*;\n        ^~~~~~~\n%Error: data/full_repos/permissive/158608551/basic/top.sv:7: syntax error, unexpected ::\ndut  #(.N(dut_pkg::DATA_WIDTH))  dut1(.clk(dut_if1.clk), .rst(dut_if1.rst), .cmd(dut_if1.cmd), \n                 ^~\n%Error: data/full_repos/permissive/158608551/basic/top.sv:13: syntax error, unexpected \'#\'\n uvm_config_db#(virtual dut_if)::set(null, "*", "dut_vi", dut_if1);\n              ^\n%Error: data/full_repos/permissive/158608551/basic/top.sv:17: syntax error, unexpected ::\n data_width_check: assert (dut_pkg::DATA_WIDTH <= 31) $display ("parameter DATA_WIDTH is OK");\n                                  ^~\n%Error: data/full_repos/permissive/158608551/basic/top.sv:20: syntax error, unexpected ::\n max_val_check: assert (dut_pkg::MAX_RAND_VAL <= 2**dut_pkg::DATA_WIDTH-1) $display ("parameter MAX_RAND_VAL is OK");\n                               ^~\n%Error: Exiting due to 5 error(s)\n'
module top;
	import uvm_pkg::*;
	import dut_pkg::*;


dut_if dut_if1();
dut  #(.N(dut_pkg::DATA_WIDTH))  dut1(.clk(dut_if1.clk), .rst(dut_if1.rst), .cmd(dut_if1.cmd), 
	.data(dut_if1.data[dut_pkg::DATA_WIDTH-1:0]), 
	.dout(dut_if1.dout[dut_pkg::DATA_WIDTH-1:0]));

initial
begin: blk
	uvm_config_db#(virtual dut_if)::set(null, "*", "dut_vi", dut_if1);



	data_width_check: assert (dut_pkg::DATA_WIDTH <= 31) $display ("parameter DATA_WIDTH is OK");
    else $fatal("INVALID parameter DATA_WIDTH");

	max_val_check: assert (dut_pkg::MAX_RAND_VAL <= 2**dut_pkg::DATA_WIDTH-1) $display ("parameter MAX_RAND_VAL is OK");
    else $fatal("INVALID parameter MAX_RAND_VAL");


	run_test();
end

endmodule
module top;

	import uvm_pkg::*;
	import dut_pkg::*;


dut_if dut_if1();
dut  #(.N(dut_pkg::DATA_WIDTH))  dut1(.clk(dut_if1.clk), .rst(dut_if1.rst), .cmd(dut_if1.cmd), 
	.data(dut_if1.data[dut_pkg::DATA_WIDTH-1:0]), 
	.dout(dut_if1.dout[dut_pkg::DATA_WIDTH-1:0]));

initial
begin: blk
	uvm_config_db#(virtual dut_if)::set(null, "*", "dut_vi", dut_if1);



	data_width_check: assert (dut_pkg::DATA_WIDTH <= 31) $display ("parameter DATA_WIDTH is OK");
    else $fatal("INVALID parameter DATA_WIDTH");

	max_val_check: assert (dut_pkg::MAX_RAND_VAL <= 2**dut_pkg::DATA_WIDTH-1) $display ("parameter MAX_RAND_VAL is OK");
    else $fatal("INVALID parameter MAX_RAND_VAL");


	run_test();
end

endmodule