top.v 260 Bytes
Newer Older
1 2 3 4 5 6 7
module top
(
 input x,
 input y,
 input cin,
 input clk,

8 9
 output reg A,
 output reg cout
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 );

 initial begin
    A = 0;
    cout = 0;
 end

`ifndef BUG
 assign    A =  y + cin;
 assign   cout =  y + A;

`else
assign {cout,A} =  cin - y * x;
`endif

endmodule