data/full_repos/permissive/181415525/endless_reader.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/181415525/endless_reader.v:78: Operator COND expects 33 bits on the Conditional True, but Conditional True\'s REPLICATE generates 32 bits.\n                                                                        : ... In instance endless_reader.mapper1\nassign long = (short[3] == 1\'b0) ? ({\n                                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/181415525/endless_reader.v:84: Operator COND expects 33 bits on the Conditional True, but Conditional True\'s CONST \'32\'h2\' generates 32 bits.\n                                                                        : ... In instance endless_reader.mapper1\n  (short ==  4\'hf) ? 32\'h00_00_00_02 : (\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/181415525/endless_reader.v:85: Operator COND expects 33 bits on the Conditional True, but Conditional True\'s CONST \'32\'h1\' generates 32 bits.\n                                                                        : ... In instance endless_reader.mapper1\n    (short == 4\'he) ? 32\'h00_00_00_01 : 32\'h00_00_00_00\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/181415525/endless_reader.v:85: Operator COND expects 33 bits on the Conditional False, but Conditional False\'s CONST \'32\'h0\' generates 32 bits.\n                                                                        : ... In instance endless_reader.mapper1\n    (short == 4\'he) ? 32\'h00_00_00_01 : 32\'h00_00_00_00\n                    ^\n%Error: data/full_repos/permissive/181415525/endless_reader.v:37: Cannot find file containing module: \'fifo\'\nfifo fifo1(\n^~~~\n        ... Looked in:\n             data/full_repos/permissive/181415525,data/full_repos/permissive/181415525/fifo\n             data/full_repos/permissive/181415525,data/full_repos/permissive/181415525/fifo.v\n             data/full_repos/permissive/181415525,data/full_repos/permissive/181415525/fifo.sv\n             fifo\n             fifo.v\n             fifo.sv\n             obj_dir/fifo\n             obj_dir/fifo.v\n             obj_dir/fifo.sv\n%Error: Exiting due to 1 error(s), 4 warning(s)\n'
module color_mapper(
  input wire [3:0] short, 
  output wire [32:0] long
);

assign long = (short[3] == 1'b0) ? ({
  short[0]?8'hff:8'h00,
  short[1]?8'hff:8'h00,
  short[2]?8'hff:8'h00,
  8'hff
}):(
  (short ==  4'hf) ? 32'h00_00_00_02 : (
    (short == 4'he) ? 32'h00_00_00_01 : 32'h00_00_00_00
  )
);
endmodule
module color_mapper(
  input wire [3:0] short, 
  output wire [32:0] long
);


assign long = (short[3] == 1'b0) ? ({
  short[0]?8'hff:8'h00,
  short[1]?8'hff:8'h00,
  short[2]?8'hff:8'h00,
  8'hff
}):(
  (short ==  4'hf) ? 32'h00_00_00_02 : (
    (short == 4'he) ? 32'h00_00_00_01 : 32'h00_00_00_00
  )
);
endmodule