data/full_repos/permissive/446997925/hw4/sign_extend.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/446997925/hw4/sign_extend.v:46: Multiple top level modules\n                                                                            : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                            : ... Top module \'sign_extend_6_32\'\nmodule sign_extend_6_32(i,o);\n       ^~~~~~~~~~~~~~~~\n                                                                            : ... Top module \'sign_extend_16_32\'\nmodule sign_extend_16_32(i,o);\n       ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module sign_extend_16_32(i,o);
input [15:0] i;
output [31:0] o;
wire sign = i[15];


buf_16_bit f(o[15:0], i[15:0]),
           s(o[31:16], {16 {sign}});


endmodule
module sign_extend_16_32(i,o);

input [15:0] i;
output [31:0] o;
wire sign = i[15];


buf_16_bit f(o[15:0], i[15:0]),
           s(o[31:16], {16 {sign}});


endmodule