summaryrefslogtreecommitdiff
path: root/csel.v
diff options
context:
space:
mode:
authorMichael Abed <michaelabed@gmail.com>2012-12-02 12:11:54 -0500
committerMichael Abed <michaelabed@gmail.com>2012-12-02 12:11:54 -0500
commita93f8d8f6331f28b8862258db95cea3ac14f7787 (patch)
treef624b9f481b06157c7d1041300703130546ea8cb /csel.v
downloadec413-lab3-master.tar.gz
ec413-lab3-master.tar.bz2
ec413-lab3-master.zip
add verilog codeHEADmaster
Diffstat (limited to 'csel.v')
-rwxr-xr-xcsel.v31
1 files changed, 31 insertions, 0 deletions
diff --git a/csel.v b/csel.v
new file mode 100755
index 0000000..d1b29d7
--- /dev/null
+++ b/csel.v
@@ -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