MUXCY.v 484 Bytes
// $Header: /root/leakn64/depot/rf/hw/debug/xilinx/MUXCY.v,v 1.1 2003/04/01 21:47:34 berndt Exp $

/*

FUNCTION	: 2 to 1 Multiplexer for Carry Logic

*/

`timescale  100 ps / 10 ps


module MUXCY (O, CI, DI, S);

    output O;
    reg    o_out;

    input  CI, DI, S;

    buf B1 (O, o_out);

	always @(CI or DI or S) begin
	    if (S)
		o_out <= CI;
	    else
		o_out <= DI;
	end

    specify
	(CI => O) = (1, 1);
	(DI => O) = (1, 1);
	(S  => O) = (1, 1);
    endspecify

endmodule