diff options
author | Michael Abed <michaelabed@gmail.com> | 2012-12-02 12:11:54 -0500 |
---|---|---|
committer | Michael Abed <michaelabed@gmail.com> | 2012-12-02 12:11:54 -0500 |
commit | a93f8d8f6331f28b8862258db95cea3ac14f7787 (patch) | |
tree | f624b9f481b06157c7d1041300703130546ea8cb /csel.v | |
download | ec413-lab3-master.tar.gz ec413-lab3-master.tar.bz2 ec413-lab3-master.zip |
Diffstat (limited to 'csel.v')
-rwxr-xr-x | csel.v | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -0,0 +1,31 @@ +`timescale 1ns / 1ps +////////////////////////////////////////////////////////////////////////////////// +// Company: +// Engineer: +// +// Create Date: 20:27:50 09/27/2012 +// Design Name: +// Module Name: csel +// Project Name: +// Target Devices: +// Tool versions: +// Description: +// +// Dependencies: +// +// Revision: +// Revision 0.01 - File Created +// Additional Comments: +// +////////////////////////////////////////////////////////////////////////////////// +module csel( + input c_prev, + input c0, + input c1, + output sel + ); +wire i1; + +and #1 a1(i1, c_prev, c1); +or #1 o1(sel, c0, i1); +endmodule |