data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v
1: b'%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.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/SegmentLedHexDecoder,data/full_repos/permissive/165846232/../../utils/test.v\n             data/full_repos/permissive/165846232/components/SegmentLedHexDecoder,data/full_repos/permissive/165846232/../../utils/test.v.v\n             data/full_repos/permissive/165846232/components/SegmentLedHexDecoder,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/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:3: Cannot find include file: ./SegmentLedHexDecoder.v\n`include "./SegmentLedHexDecoder.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:4: Cannot find include file: ../SegmentLedHexEncoder/SegmentLedHexEncoder.v\n`include "../SegmentLedHexEncoder/SegmentLedHexEncoder.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:46: Define or directive not defined: \'`startTest\'\n `startTest("SegmentLedHexDecoder")\n ^~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:46: syntax error, unexpected \'(\'\n `startTest("SegmentLedHexDecoder")\n            ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:50: Define or directive not defined: \'`describe\'\n        `describe("Render digit 0");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:52: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:54: Define or directive not defined: \'`describe\'\n        `describe("Render digit 1");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:56: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:58: Define or directive not defined: \'`describe\'\n        `describe("Render digit 1");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:60: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:62: Define or directive not defined: \'`describe\'\n        `describe("Render digit 3");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:64: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:66: Define or directive not defined: \'`describe\'\n        `describe("Render digit 4");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:68: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:70: Define or directive not defined: \'`describe\'\n        `describe("Render digit 5");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:72: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:74: Define or directive not defined: \'`describe\'\n        `describe("Render digit 6");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:76: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:78: Define or directive not defined: \'`describe\'\n        `describe("Render digit 7");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:80: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:82: Define or directive not defined: \'`describe\'\n        `describe("Render digit 8");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:84: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:86: Define or directive not defined: \'`describe\'\n        `describe("Render digit 9");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:88: Define or directive not defined: \'`assert\'\n            `assert(HexDigitOutput, HexDigit);\n            ^~~~~~~\n%Error: data/full_repos/permissive/165846232/components/SegmentLedHexDecoder/TestSegmentLedHexDecoder.v:91: Define or directive not defined: \'`endTest\'\n    `endTest\n    ^~~~~~~~\n%Error: Exiting due to 26 error(s)\n'
module TestSegmentLedHexDecoder;


    reg [3:0] HexDigit;
    


    wire SegmentA;
    wire SegmentB;
    wire SegmentC;
    wire SegmentD;
    wire SegmentE;
    wire SegmentF;
    wire SegmentG;
    reg [3:0] HexDigitOutput;


	SegmentLedHexDecoder uut (
		.HexDigit(HexDigit),
        .Segments({
            SegmentG, SegmentF, SegmentE, SegmentD, SegmentC, SegmentB, SegmentA
        })
	);
    

    SegmentLedHexEncoder encoder (
        .HexDigit(HexDigitOutput),
        .Segments({
            SegmentG, SegmentF, SegmentE, SegmentD, SegmentC, SegmentB, SegmentA
        })
    );

	`startTest("SegmentLedHexDecoder")

        #100;
        
        `describe("Render digit 0");
            HexDigit = 0; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 1");
            HexDigit = 1; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 1");
            HexDigit = 2; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 3");
            HexDigit = 3; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 4");
            HexDigit = 4; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 5");
            HexDigit = 5; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 6");
            HexDigit = 6; #2;
            `assert(HexDigitOutput, HexDigit);
            
        `describe("Render digit 7");
            HexDigit = 7; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 8");
            HexDigit = 8; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 9");
            HexDigit = 9; #2;
            `assert(HexDigitOutput, HexDigit);
        
        
    `endTest
      
endmodule
module TestSegmentLedHexDecoder;



    reg [3:0] HexDigit;
    


    wire SegmentA;
    wire SegmentB;
    wire SegmentC;
    wire SegmentD;
    wire SegmentE;
    wire SegmentF;
    wire SegmentG;
    reg [3:0] HexDigitOutput;


	SegmentLedHexDecoder uut (
		.HexDigit(HexDigit),
        .Segments({
            SegmentG, SegmentF, SegmentE, SegmentD, SegmentC, SegmentB, SegmentA
        })
	);
    

    SegmentLedHexEncoder encoder (
        .HexDigit(HexDigitOutput),
        .Segments({
            SegmentG, SegmentF, SegmentE, SegmentD, SegmentC, SegmentB, SegmentA
        })
    );

	`startTest("SegmentLedHexDecoder")

        #100;
        
        `describe("Render digit 0");
            HexDigit = 0; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 1");
            HexDigit = 1; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 1");
            HexDigit = 2; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 3");
            HexDigit = 3; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 4");
            HexDigit = 4; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 5");
            HexDigit = 5; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 6");
            HexDigit = 6; #2;
            `assert(HexDigitOutput, HexDigit);
            
        `describe("Render digit 7");
            HexDigit = 7; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 8");
            HexDigit = 8; #2;
            `assert(HexDigitOutput, HexDigit);
        
        `describe("Render digit 9");
            HexDigit = 9; #2;
            `assert(HexDigitOutput, HexDigit);
        
        
    `endTest
      
endmodule