data/full_repos/permissive/210844779/lab5/5.4/pipol.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/210844779/lab5/5.4/pipol.v:13: Operator ASSIGNDLY expects 15 bits on the Assign RHS, but Assign RHS\'s VARREF \'d\' generates 8 bits.\n                                                                        : ... In instance pipol\n      q<=d;\n       ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module pipol(d,clk,load,rst,q);
  input [7:0]d;
  input clk,rst,load;
  output reg [14:0]q;
  
  always@(posedge clk,posedge rst)
  begin
  if (rst)
    q<=0;
  else
    begin
    if (load)
      q<=d;
    else
      q<={q[13:0],1'b0};
    end
  end
  
endmodule
module pipol(d,clk,load,rst,q);

  input [7:0]d;
  input clk,rst,load;
  output reg [14:0]q;
  
  always@(posedge clk,posedge rst)
  begin
  if (rst)
    q<=0;
  else
    begin
    if (load)
      q<=d;
    else
      q<={q[13:0],1'b0};
    end
  end
  
endmodule