data/full_repos/permissive/139831595/hw/source/lit_selector.v
1: b'%Warning-WIDTH: data/full_repos/permissive/139831595/hw/source/lit_selector.v:143: Operator SUB expects 12 bits on the RHS, but RHS\'s VARREF \'base\' generates 6 bits.\n                                                                                 : ... In instance lit_selector.arbiter0\nwire [2*WIDTH-1:0] double_grant = double_req & ~(double_req-base);   \n                                                           ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/139831595/hw/source/lit_selector.v:80: Operator ASSIGN expects 3 bits on the Assign RHS, but Assign RHS\'s VARREF \'i\' generates 32 bits.\n                                                                                : ... In instance lit_selector\n                    onehot_int = i;\n                               ^\n%Error: data/full_repos/permissive/139831595/hw/source/lit_selector.v:85: Cannot find file containing module: \'select\'\nselect \n^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/139831595/hw/source,data/full_repos/permissive/139831595/select\n             data/full_repos/permissive/139831595/hw/source,data/full_repos/permissive/139831595/select.v\n             data/full_repos/permissive/139831595/hw/source,data/full_repos/permissive/139831595/select.sv\n             select\n             select.v\n             select.sv\n             obj_dir/select\n             obj_dir/select.v\n             obj_dir/select.sv\n%Error: data/full_repos/permissive/139831595/hw/source/lit_selector.v:97: Cannot find file containing module: \'select\'\nselect \n^~~~~~\n%Error: data/full_repos/permissive/139831595/hw/source/lit_selector.v:109: Cannot find file containing module: \'select\'\nselect \n^~~~~~\n%Error: Exiting due to 3 error(s), 2 warning(s)\n'
module arbiter
#(
	parameter WIDTH = 6
)
(   
    req, grant, base   
);      
   
input [WIDTH-1:0] req;   
output [WIDTH-1:0] grant;   
input [WIDTH-1:0] base;   
   
wire [2*WIDTH-1:0] double_req = {req,req};   
wire [2*WIDTH-1:0] double_grant = double_req & ~(double_req-base);   
assign grant = double_grant[WIDTH-1:0] | double_grant[2*WIDTH-1:WIDTH];   
   
endmodule
module arbiter
#(
	parameter WIDTH = 6
)
(   
    req, grant, base   
);
      
   
input [WIDTH-1:0] req;   
output [WIDTH-1:0] grant;   
input [WIDTH-1:0] base;   
   
wire [2*WIDTH-1:0] double_req = {req,req};   
wire [2*WIDTH-1:0] double_grant = double_req & ~(double_req-base);   
assign grant = double_grant[WIDTH-1:0] | double_grant[2*WIDTH-1:WIDTH];   
   
endmodule