yosys/tests/liberty/semicolmissing.lib.verilogs...

10 lines
220 B
Plaintext
Raw Normal View History

2024-08-13 18:36:31 +02:00
module fulladder (A, B, CI, CO, Y);
input A;
input B;
input CI;
output CO;
assign CO = (((A&B)|(B&CI))|(CI&A)); // "(((A * B)+(B * CI))+(CI * A))"
2024-08-13 18:36:31 +02:00
output Y;
assign Y = ((A^B)^CI); // "((A^B)^CI)"
2024-08-13 18:36:31 +02:00
endmodule