data/full_repos/permissive/107057345/7 Seg Display Synthesized/Design Task 2 synthesized.srcs/sources_1/imports/imports/Desktop/dassign2.v
1: b'%Error: Cannot find file containing module: Seg\n        ... Looked in:\n             data/full_repos/permissive/107057345/7/Seg\n             data/full_repos/permissive/107057345/7/Seg.v\n             data/full_repos/permissive/107057345/7/Seg.sv\n             Seg\n             Seg.v\n             Seg.sv\n             obj_dir/Seg\n             obj_dir/Seg.v\n             obj_dir/Seg.sv\n%Error: Cannot find file containing module: Display\n%Error: Cannot find file containing module: Synthesized/Design\n%Error: Cannot find file containing module: Task\n%Error: Cannot find file containing module: 2\n%Error: Cannot find file containing module: synthesized.srcs/sources_1/imports/imports/Desktop,data/full_repos/permissive/107057345\n%Error: Cannot find file containing module: data/full_repos/permissive/107057345/7\n%Error: Cannot find file containing module: synthesized.srcs/sources_1/imports/imports/Desktop/dassign2.v\n%Error: Exiting due to 8 error(s)\n'
module deciadd (digInA, digInB, sub, cin, digOut, cout);



parameter dlen=3;



input   [dlen:0]   digInA, digInB;
input   sub, cin;
output  [dlen:0]  digOut;
output  cout;





reg [dlen:0] digOut;
reg cout;
  reg[dlen + 1:0] S;
  reg[dlen:0] A, B;
  
  always @(sub or cin or digInA or digInB)
    begin
       A = digInA;
    	if(sub)
      		 B = 4'b1001 - digInB;
  		else
    		 B = digInB;
      
   S = A + B + cin;
      
       digOut = (S < 5'b01010) ? S : S - 4'b1010; 
      
       cout = (S < 5'b01010) ? 1'b0 : 1'b1;
    end

endmodule
module deciadd (digInA, digInB, sub, cin, digOut, cout);




parameter dlen=3;



input   [dlen:0]   digInA, digInB;
input   sub, cin;
output  [dlen:0]  digOut;
output  cout;





reg [dlen:0] digOut;
reg cout;
  reg[dlen + 1:0] S;
  reg[dlen:0] A, B;
  
  always @(sub or cin or digInA or digInB)
    begin
       A = digInA;
    	if(sub)
      		 B = 4'b1001 - digInB;
  		else
    		 B = digInB;
      
   S = A + B + cin;
      
       digOut = (S < 5'b01010) ? S : S - 4'b1010; 
      
       cout = (S < 5'b01010) ? 1'b0 : 1'b1;
    end

endmodule