data/full_repos/permissive/210844779/lab3/3.2/tb.v
 line:1: before: "32"
1: b'%Error: data/full_repos/permissive/210844779/lab3/3.2/tb.v:1: syntax error, unexpected INTEGER NUMBER\nmodule tb();32\n            ^~\n%Warning-STMTDLY: data/full_repos/permissive/210844779/lab3/3.2/tb.v:41: Unsupported: Ignoring delay on this delayed statement.\n     #10;\n     ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 error(s), 1 warning(s)\n'
module tb();32
  reg [7:0]A,B;
  reg [2:0]sel;
  wire [7:0]C;
  wire Borrow,Carry,Equal,less,more;
  
alu u0(A,B,sel,Borrow,Carry,Equal,less,more,C);

always
begin
  sel=$random;
  A=$random;
  B=$random;
  
  if (sel==0)
    $display("sum and Carry for input of A=%b and B=%b is Carry=%b and Sum=%b",A,B,Carry,C);
  
  if (sel==1)
    $display("difference and Borrow for input of A=%b and B=%b is Borrow=%b and diffrence=%b",A,B,Borrow,C);
  if (sel==2)
    $display("XOR of A=%b & B=%b is %b",A,B,C);
  
  if (sel==3)
    $display("AND of A=%b & B=%b is %b",A,B,C);
    
  if (sel==4)
    $display("NOR of A=%b & B=%b is %b",A,B,C);
    
  if (sel==5)
    $display("NAND of A=%b & B=%b is %b",A,B,C);
    
  if (sel==6)
          begin
            if(more)
              $display("A is greater than B");
          else if(less)
              $display("A is less than B");
          else
              $display("A is equal to B");
          end    
     #10;
   end
   
 endmodule
module tb();
32
  reg [7:0]A,B;
  reg [2:0]sel;
  wire [7:0]C;
  wire Borrow,Carry,Equal,less,more;
  
alu u0(A,B,sel,Borrow,Carry,Equal,less,more,C);

always
begin
  sel=$random;
  A=$random;
  B=$random;
  
  if (sel==0)
    $display("sum and Carry for input of A=%b and B=%b is Carry=%b and Sum=%b",A,B,Carry,C);
  
  if (sel==1)
    $display("difference and Borrow for input of A=%b and B=%b is Borrow=%b and diffrence=%b",A,B,Borrow,C);
  if (sel==2)
    $display("XOR of A=%b & B=%b is %b",A,B,C);
  
  if (sel==3)
    $display("AND of A=%b & B=%b is %b",A,B,C);
    
  if (sel==4)
    $display("NOR of A=%b & B=%b is %b",A,B,C);
    
  if (sel==5)
    $display("NAND of A=%b & B=%b is %b",A,B,C);
    
  if (sel==6)
          begin
            if(more)
              $display("A is greater than B");
          else if(less)
              $display("A is less than B");
          else
              $display("A is equal to B");
          end    
     #10;
   end
   
 endmodule