data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/BanGoc/LuanVan/Hardware/lv_nopl/full_sub.v
1: b"%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/BanGoc/LuanVan/Hardware/lv_nopl/full_sub.v:55: Cannot find file containing module: 'full_adder'\n    full_adder fai\n    ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/BanGoc/LuanVan/Hardware/lv_nopl,data/full_repos/permissive/530013823/full_adder\n             data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/BanGoc/LuanVan/Hardware/lv_nopl,data/full_repos/permissive/530013823/full_adder.v\n             data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/BanGoc/LuanVan/Hardware/lv_nopl,data/full_repos/permissive/530013823/full_adder.sv\n             full_adder\n             full_adder.v\n             full_adder.sv\n             obj_dir/full_adder\n             obj_dir/full_adder.v\n             obj_dir/full_adder.sv\n%Error: Exiting due to 1 error(s)\n"
module full_sub
    (
     a,
     b,
     sub,
	c
     );




parameter WIDTH = 9;




input [WIDTH-1:0] a,b;

output [WIDTH-1:0] sub;
output       c;







wire [WIDTH-1:0] notb;

assign notb = ~b;

wire [WIDTH:0] subc;

assign subc[0] = 1'b1;

wire [WIDTH-1:0] subrs;

genvar i;
generate
for(i = 0; i<WIDTH; i = i+1)
    begin : FAgen
    full_adder fai
            (
             .a(a[i]),
             .b(notb[i]),
             .c_i(subc[i]),
             .sum(subrs[i]),
             .c_o(subc[i+1])
             );
    end
endgenerate

assign sub = subrs;
assign c = subc[WIDTH];

endmodule
module full_sub
    (
     a,
     b,
     sub,
	c
     );





parameter WIDTH = 9;




input [WIDTH-1:0] a,b;

output [WIDTH-1:0] sub;
output       c;







wire [WIDTH-1:0] notb;

assign notb = ~b;

wire [WIDTH:0] subc;

assign subc[0] = 1'b1;

wire [WIDTH-1:0] subrs;

genvar i;
generate
for(i = 0; i<WIDTH; i = i+1)
    begin : FAgen
    full_adder fai
            (
             .a(a[i]),
             .b(notb[i]),
             .c_i(subc[i]),
             .sum(subrs[i]),
             .c_o(subc[i+1])
             );
    end
endgenerate

assign sub = subrs;
assign c = subc[WIDTH];

endmodule