BCD adder in Verilog code shows vague error message [closed]
It is giving these errors: 1bitFulladder.v:2: syntax error I'm going to make a BCD adder into a structural design with two 4-bit adders. The error is not specific. No matter how much I look for errors, I can't find them. I don't understand what is wrong in this code: module 1bitFulladder (ai, bi, cin, sum, cout); input ai, bi, cin; output sum, cout; wire s0, c0, c1; assign s0=ai^bi; assign c0=ai&bi; assign c1=s0&cin; assign sum=s0^cin; assign cout=c0|c1; endmodule module 4bitFulladder (a, b, Cin, Sum, Cout); input [3:0]a; input [3:0]b; input Cin; output [3:0]Sum; output Cout; wire c1, c2, c3;
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.