data/full_repos/permissive/107007139/Project/music_node_selector.v
1: b"%Error: data/full_repos/permissive/107007139/Project/music_node_selector.v:35: Cannot find file containing module: 'square_node_generator'\n    square_node_generator square_node(clk, node_select, square_out);\n    ^~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/107007139/Project,data/full_repos/permissive/107007139/square_node_generator\n             data/full_repos/permissive/107007139/Project,data/full_repos/permissive/107007139/square_node_generator.v\n             data/full_repos/permissive/107007139/Project,data/full_repos/permissive/107007139/square_node_generator.sv\n             square_node_generator\n             square_node_generator.v\n             square_node_generator.sv\n             obj_dir/square_node_generator\n             obj_dir/square_node_generator.v\n             obj_dir/square_node_generator.sv\n%Error: data/full_repos/permissive/107007139/Project/music_node_selector.v:36: Cannot find file containing module: 'triangle_node_generator'\n    triangle_node_generator triangle_node(clk, node_select, triangle_out);\n    ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module music_node_selector(
    input clk,
    input [5:0] select,
    output [11:0] out
    );
    
    wire [4:0] node_select;
    wire [11:0] square_out;
    wire [11:0] triangle_out;
    
    assign node_select = { select[4], select[3], select[2], select[1], select[0] };
    
    square_node_generator square_node(clk, node_select, square_out);
    triangle_node_generator triangle_node(clk, node_select, triangle_out);
    
    assign out = select[5] ? triangle_out : square_out;
endmodule
module music_node_selector(
    input clk,
    input [5:0] select,
    output [11:0] out
    );

    
    wire [4:0] node_select;
    wire [11:0] square_out;
    wire [11:0] triangle_out;
    
    assign node_select = { select[4], select[3], select[2], select[1], select[0] };
    
    square_node_generator square_node(clk, node_select, square_out);
    triangle_node_generator triangle_node(clk, node_select, triangle_out);
    
    assign out = select[5] ? triangle_out : square_out;
endmodule