Files
yosys/tests/arch/common/add_sub.v

13 lines
151 B
Verilog
Raw Permalink Normal View History

2019-09-23 12:12:02 +03:00
module top
(
2019-10-18 12:50:24 +02:00
input [3:0] x,
input [3:0] y,
2019-09-23 12:12:02 +03:00
2019-10-18 12:50:24 +02:00
output [3:0] A,
output [3:0] B
);
2019-09-23 12:12:02 +03:00
2019-10-18 12:50:24 +02:00
assign A = x + y;
assign B = x - y;
2019-09-23 12:12:02 +03:00
endmodule