data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v
1: b'%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:2: Cannot find include file: ../../utils/test.v\n`include "../../utils/test.v" \n         ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/165846232/components/SignDivider,data/full_repos/permissive/165846232/../../utils/test.v\n             data/full_repos/permissive/165846232/components/SignDivider,data/full_repos/permissive/165846232/../../utils/test.v.v\n             data/full_repos/permissive/165846232/components/SignDivider,data/full_repos/permissive/165846232/../../utils/test.v.sv\n             ../../utils/test.v\n             ../../utils/test.v.v\n             ../../utils/test.v.sv\n             obj_dir/../../utils/test.v\n             obj_dir/../../utils/test.v.v\n             obj_dir/../../utils/test.v.sv\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:3: Cannot find include file: ./SignDivider.v\n`include "./SignDivider.v" \n         ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:29: Define or directive not defined: \'`defClock\'\n    `defClock(Clk, 2);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:29: syntax error, unexpected \'(\'\n    `defClock(Clk, 2);\n              ^~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:50: Define or directive not defined: \'`startTest\'\n    `startTest("SignDivider");\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:50: syntax error, unexpected \'(\'\n    `startTest("SignDivider");\n               ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:58: Define or directive not defined: \'`describe\'\n        `describe("Test 13 / 2");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:59: Define or directive not defined: \'`assert\'\n        `assert(Quotient, 13/2); \n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:59: Define or directive not defined: \'`assert\'\n        `assert(Remainder, 13%2);;\n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:61: Define or directive not defined: \'`describe\'\n        `describe("Test 69 / 42");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:62: Define or directive not defined: \'`assert\'\n        `assert(Quotient, 69/42); \n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:62: Define or directive not defined: \'`assert\'\n        `assert(Remainder, 69%42);;\n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:64: Define or directive not defined: \'`describe\'\n        `describe("Test 255 / 5");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:65: Define or directive not defined: \'`assert\'\n        `assert(Quotient, 255/5); \n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:65: Define or directive not defined: \'`assert\'\n        `assert(Remainder, 255%5);;\n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:67: Define or directive not defined: \'`describe\'\n        `describe("Test 77 / 1");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:68: Define or directive not defined: \'`assert\'\n        `assert(Quotient, 77/1); \n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:68: Define or directive not defined: \'`assert\'\n        `assert(Remainder, 77%1);;\n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:70: Define or directive not defined: \'`describe\'\n         `describe("Test 150 / 150");\n         ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:71: Define or directive not defined: \'`assert\'\n        `assert(Quotient, 150/150); \n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:71: Define or directive not defined: \'`assert\'\n        `assert(Remainder, 150%150);;\n        ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SignDivider/TestSignDivider.v:72: Define or directive not defined: \'`endTest\'\n    `endTest\n    ^~~~~~~~\n%Error: Exiting due to 22 error(s)\n'
module TestSignDivider
#(
	parameter INPUT_BIT_WIDTH = 8
);


    `defClock(Clk, 2);
	reg [INPUT_BIT_WIDTH-1:0] Dividend;
	reg [INPUT_BIT_WIDTH-1:0] Divider;
	reg Sign;


	wire Ready;
	wire [INPUT_BIT_WIDTH-1:0] Quotient;
	wire [INPUT_BIT_WIDTH-1:0] Remainder;


	SignDivider uut (
		.Ready(Ready), 
		.Quotient(Quotient), 
		.Remainder(Remainder), 
		.Dividend(Dividend), 
		.Divider(Divider), 
		.Sign(Sign), 
		.Clk(Clk)
	);

    `startTest("SignDivider");

		Dividend = 0;
		Divider = 0;
		Sign = 0;
		Clk = 0;
		#100;
    
        `describe("Test 13 / 2");
            `do_div(13, 2);
            
        `describe("Test 69 / 42");
            `do_div(69, 42);
    
        `describe("Test 255 / 5");
            `do_div(255, 5);
        
        `describe("Test 77 / 1");
            `do_div(77, 1);
            
         `describe("Test 150 / 150");
            `do_div(150, 150);
    `endTest
      
endmodule
module TestSignDivider
#(
	parameter INPUT_BIT_WIDTH = 8
);



    `defClock(Clk, 2);
	reg [INPUT_BIT_WIDTH-1:0] Dividend;
	reg [INPUT_BIT_WIDTH-1:0] Divider;
	reg Sign;


	wire Ready;
	wire [INPUT_BIT_WIDTH-1:0] Quotient;
	wire [INPUT_BIT_WIDTH-1:0] Remainder;


	SignDivider uut (
		.Ready(Ready), 
		.Quotient(Quotient), 
		.Remainder(Remainder), 
		.Dividend(Dividend), 
		.Divider(Divider), 
		.Sign(Sign), 
		.Clk(Clk)
	);

    `startTest("SignDivider");

		Dividend = 0;
		Divider = 0;
		Sign = 0;
		Clk = 0;
		#100;
    
        `describe("Test 13 / 2");
            `do_div(13, 2);
            
        `describe("Test 69 / 42");
            `do_div(69, 42);
    
        `describe("Test 255 / 5");
            `do_div(255, 5);
        
        `describe("Test 77 / 1");
            `do_div(77, 1);
            
         `describe("Test 150 / 150");
            `do_div(150, 150);
    `endTest
      
endmodule