aboutsummaryrefslogtreecommitdiff
path: root/sem6/dig/m2/ex3.vhdl
diff options
context:
space:
mode:
Diffstat (limited to 'sem6/dig/m2/ex3.vhdl')
-rw-r--r--sem6/dig/m2/ex3.vhdl15
1 files changed, 15 insertions, 0 deletions
diff --git a/sem6/dig/m2/ex3.vhdl b/sem6/dig/m2/ex3.vhdl
new file mode 100644
index 0000000..8b3603a
--- /dev/null
+++ b/sem6/dig/m2/ex3.vhdl
@@ -0,0 +1,15 @@
+-- TEST_START{"inputs": ["a", "b"], "outputs": ["o"], "testin": ["00", "01", "10", "11"]}TEST_STOP
+LIBRARY IEEE;
+USE IEEE.STD_LOGIC_1164.all;
+
+ENTITY ex3 IS
+ PORT(
+ a: IN STD_LOGIC;
+ b: IN STD_LOGIC;
+ o: OUT STD_LOGIC);
+END ex3;
+
+ARCHITECTURE impl OF ex3 IS
+BEGIN
+ o <= a and b;
+END impl;