data/full_repos/permissive/428158935/sources_1/new/TruncateModule.v
1: b"%Error: data/full_repos/permissive/428158935/sources_1/new/TruncateModule.v:15: Duplicate declaration of signal: 'judge'\n                                                                              : ... note: ANSI ports must have type declared with the I/O (IEEE 1800-2017 23.2.2.2)\nwire [31:0] judge;\n            ^~~~~\n        data/full_repos/permissive/428158935/sources_1/new/TruncateModule.v:4: ... Location of original declaration\n    output [31:0] judge\n                  ^~~~~\n%Error: Exiting due to 1 error(s)\n"
module Truncate_32bit(
    input [31:0] a,
    input dir,
    input [4:0] bite,
    output [31:0] s
);
wire [31:0] judge;
Cut_decoder cutd1(
    .bite(bite),
    .judge(judge)
);

wire [31:0] s1;
CutL cutl1(
    .dir(dir),
    .a(a),
    .judge(judge),
    .s(s1)
);


wire [31:0] s2;
CutR cutr1(
    .dir(dir),
    .a(a),
    .judge(judge),
    .s(s2)
);

or (s[0],s1[0],s2[0]);
or (s[1],s1[1],s2[1]);
or (s[2],s1[2],s2[2]);
or (s[3],s1[3],s2[3]);
or (s[4],s1[4],s2[4]);
or (s[5],s1[5],s2[5]);
or (s[6],s1[6],s2[6]);
or (s[7],s1[7],s2[7]);
or (s[8],s1[8],s2[8]);
or (s[9],s1[9],s2[9]);
or (s[10],s1[10],s2[10]);
or (s[11],s1[11],s2[11]);
or (s[12],s1[12],s2[12]);
or (s[13],s1[13],s2[13]);
or (s[14],s1[14],s2[14]);
or (s[15],s1[15],s2[15]);
or (s[16],s1[16],s2[16]);
or (s[17],s1[17],s2[17]);
or (s[18],s1[18],s2[18]);
or (s[19],s1[19],s2[19]);
or (s[20],s1[20],s2[20]);
or (s[21],s1[21],s2[21]);
or (s[22],s1[22],s2[22]);
or (s[23],s1[23],s2[23]);
or (s[24],s1[24],s2[24]);
or (s[25],s1[25],s2[25]);
or (s[26],s1[26],s2[26]);
or (s[27],s1[27],s2[27]);
or (s[28],s1[28],s2[28]);
or (s[29],s1[29],s2[29]);
or (s[30],s1[30],s2[30]);
or (s[31],s1[31],s2[31]);
endmodule
module Truncate_32bit(
    input [31:0] a,
    input dir,
    input [4:0] bite,
    output [31:0] s
);

wire [31:0] judge;
Cut_decoder cutd1(
    .bite(bite),
    .judge(judge)
);

wire [31:0] s1;
CutL cutl1(
    .dir(dir),
    .a(a),
    .judge(judge),
    .s(s1)
);


wire [31:0] s2;
CutR cutr1(
    .dir(dir),
    .a(a),
    .judge(judge),
    .s(s2)
);

or (s[0],s1[0],s2[0]);
or (s[1],s1[1],s2[1]);
or (s[2],s1[2],s2[2]);
or (s[3],s1[3],s2[3]);
or (s[4],s1[4],s2[4]);
or (s[5],s1[5],s2[5]);
or (s[6],s1[6],s2[6]);
or (s[7],s1[7],s2[7]);
or (s[8],s1[8],s2[8]);
or (s[9],s1[9],s2[9]);
or (s[10],s1[10],s2[10]);
or (s[11],s1[11],s2[11]);
or (s[12],s1[12],s2[12]);
or (s[13],s1[13],s2[13]);
or (s[14],s1[14],s2[14]);
or (s[15],s1[15],s2[15]);
or (s[16],s1[16],s2[16]);
or (s[17],s1[17],s2[17]);
or (s[18],s1[18],s2[18]);
or (s[19],s1[19],s2[19]);
or (s[20],s1[20],s2[20]);
or (s[21],s1[21],s2[21]);
or (s[22],s1[22],s2[22]);
or (s[23],s1[23],s2[23]);
or (s[24],s1[24],s2[24]);
or (s[25],s1[25],s2[25]);
or (s[26],s1[26],s2[26]);
or (s[27],s1[27],s2[27]);
or (s[28],s1[28],s2[28]);
or (s[29],s1[29],s2[29]);
or (s[30],s1[30],s2[30]);
or (s[31],s1[31],s2[31]);
endmodule