data/full_repos/permissive/147086086/Lab6/hw/priority encoder/priority_encoder_tb.v
 line:23: before: "("
1: b'%Error: Cannot find file containing module: encoder,data/full_repos/permissive/147086086\n        ... Looked in:\n             data/full_repos/permissive/147086086/Lab6/hw/priority/encoder,data/full_repos/permissive/147086086\n             data/full_repos/permissive/147086086/Lab6/hw/priority/encoder,data/full_repos/permissive/147086086.v\n             data/full_repos/permissive/147086086/Lab6/hw/priority/encoder,data/full_repos/permissive/147086086.sv\n             encoder,data/full_repos/permissive/147086086\n             encoder,data/full_repos/permissive/147086086.v\n             encoder,data/full_repos/permissive/147086086.sv\n             obj_dir/encoder,data/full_repos/permissive/147086086\n             obj_dir/encoder,data/full_repos/permissive/147086086.v\n             obj_dir/encoder,data/full_repos/permissive/147086086.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/147086086/Lab6/hw/priority\n%Error: Cannot find file containing module: encoder/priority_encoder_tb.v\n%Error: Exiting due to 3 error(s)\n'
module testbench;

parameter DELAY = 20;

reg     [15:0]  one_hot;
wire    [3:0]   bin;
wire            active;

priority_encoder #(.ONEHOT_WIDTH(16)) enc_inst(.i_one_hot (one_hot), 
                                                .o_bin (bin),
                                                .o_active (active)
                                                );

initial begin
    
    one_hot = 16'b0;
    #DELAY;

    one_hot = 16'b1;

    repeat (15) begin
        #DELAY;
        one_hot = one_hot << 1;
    end

    repeat (100) begin
        #DELAY;
        one_hot = $random;
    end

    $finish;

end

endmodule
module testbench;


parameter DELAY = 20;

reg     [15:0]  one_hot;
wire    [3:0]   bin;
wire            active;

priority_encoder #(.ONEHOT_WIDTH(16)) enc_inst(.i_one_hot (one_hot), 
                                                .o_bin (bin),
                                                .o_active (active)
                                                );

initial begin
    
    one_hot = 16'b0;
    #DELAY;

    one_hot = 16'b1;

    repeat (15) begin
        #DELAY;
        one_hot = one_hot << 1;
    end

    repeat (100) begin
        #DELAY;
        one_hot = $random;
    end

    $finish;

end

endmodule