data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v
1: b'%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.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/MinMax,data/full_repos/permissive/165846232/../../utils/test.v\n             data/full_repos/permissive/165846232/components/MinMax,data/full_repos/permissive/165846232/../../utils/test.v.v\n             data/full_repos/permissive/165846232/components/MinMax,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/MinMax/TestMinMax.v:3: Cannot find include file: ./MinMax.v\n`include "./MinMax.v" \n         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:20: Define or directive not defined: \'`defClock\'\n    `defClock(Clk, 2);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:20: syntax error, unexpected \'(\'\n    `defClock(Clk, 2);\n              ^~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:39: Define or directive not defined: \'`startTest\'\n    `startTest("MinMax")\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:39: syntax error, unexpected \'(\'\n    `startTest("MinMax")\n               ^~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:47: Define or directive not defined: \'`describe\'\n        `describe("Test InputA = InputB");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:50: Define or directive not defined: \'`assert\'\n            `assert(Max, 12);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:51: Define or directive not defined: \'`assert\'\n            `assert(Min, 12);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:54: Define or directive not defined: \'`assert\'\n            `assert(Max, 0);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:55: Define or directive not defined: \'`assert\'\n            `assert(Min, 0);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:57: Define or directive not defined: \'`describe\'\n        `describe("Test InputA > InputB");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:60: Define or directive not defined: \'`assert\'\n            `assert(Max, 100);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:61: Define or directive not defined: \'`assert\'\n            `assert(Min, 0);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:64: Define or directive not defined: \'`assert\'\n            `assert(Max, 1024);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:65: Define or directive not defined: \'`assert\'\n            `assert(Min, 1023);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:67: Define or directive not defined: \'`describe\'\n        `describe("Test InputA < InputB");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:70: Define or directive not defined: \'`assert\'\n            `assert(Max, 100);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:71: Define or directive not defined: \'`assert\'\n            `assert(Min, 99);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:74: Define or directive not defined: \'`assert\'\n            `assert(Max, 1024);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:75: Define or directive not defined: \'`assert\'\n            `assert(Min, 15);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/MinMax/TestMinMax.v:77: Define or directive not defined: \'`endTest\'\n    `endTest\n    ^~~~~~~~\n%Error: Exiting due to 22 error(s)\n'
module TestMinMax
#(
	parameter INPUT_BIT_WIDTH = 32
);


    `defClock(Clk, 2);
	reg [INPUT_BIT_WIDTH-1:0] InputA;
	reg [INPUT_BIT_WIDTH-1:0] InputB;


	wire [INPUT_BIT_WIDTH-1:0] Max;
	wire [INPUT_BIT_WIDTH-1:0] Min;


	MinMax #(
        .INPUT_BIT_WIDTH(INPUT_BIT_WIDTH)
    ) uut (
		.Clk(Clk),
        .InputA(InputA),
        .InputB(InputB),
        .Max(Max),
        .Min(Min)
	);

    `startTest("MinMax")
    

        Clk = 0;
        InputA = 0;
        InputB = 0;
        #500;
        
        `describe("Test InputA = InputB");
            
            InputA = 12; InputB = 12; #2;
            `assert(Max, 12);
            `assert(Min, 12);
            
            InputA = 0; InputB = 0; #2;
            `assert(Max, 0);
            `assert(Min, 0);
        
        `describe("Test InputA > InputB");
            
            InputA = 100; InputB = 0; #2;
            `assert(Max, 100);
            `assert(Min, 0);
            
            InputA = 1024; InputB = 1023; #2;
            `assert(Max, 1024);
            `assert(Min, 1023);
            
        `describe("Test InputA < InputB");
            
            InputA = 99; InputB = 100; #2;
            `assert(Max, 100);
            `assert(Min, 99);
            
            InputA = 15; InputB = 1024; #2;
            `assert(Max, 1024);
            `assert(Min, 15);
        
    `endTest
      
endmodule
module TestMinMax
#(
	parameter INPUT_BIT_WIDTH = 32
);



    `defClock(Clk, 2);
	reg [INPUT_BIT_WIDTH-1:0] InputA;
	reg [INPUT_BIT_WIDTH-1:0] InputB;


	wire [INPUT_BIT_WIDTH-1:0] Max;
	wire [INPUT_BIT_WIDTH-1:0] Min;


	MinMax #(
        .INPUT_BIT_WIDTH(INPUT_BIT_WIDTH)
    ) uut (
		.Clk(Clk),
        .InputA(InputA),
        .InputB(InputB),
        .Max(Max),
        .Min(Min)
	);

    `startTest("MinMax")
    

        Clk = 0;
        InputA = 0;
        InputB = 0;
        #500;
        
        `describe("Test InputA = InputB");
            
            InputA = 12; InputB = 12; #2;
            `assert(Max, 12);
            `assert(Min, 12);
            
            InputA = 0; InputB = 0; #2;
            `assert(Max, 0);
            `assert(Min, 0);
        
        `describe("Test InputA > InputB");
            
            InputA = 100; InputB = 0; #2;
            `assert(Max, 100);
            `assert(Min, 0);
            
            InputA = 1024; InputB = 1023; #2;
            `assert(Max, 1024);
            `assert(Min, 1023);
            
        `describe("Test InputA < InputB");
            
            InputA = 99; InputB = 100; #2;
            `assert(Max, 100);
            `assert(Min, 99);
            
            InputA = 15; InputB = 1024; #2;
            `assert(Max, 1024);
            `assert(Min, 15);
        
    `endTest
      
endmodule