diff options
author | Julian T <julian@jtle.dk> | 2021-02-08 16:16:54 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-08 16:16:54 +0100 |
commit | 8a37c059748673e14f352fa70dbf974f33310c43 (patch) | |
tree | 8de5665d9445ee08e57ab0ffe11bd1dff3836b61 /sem6/dig/m2/nor_gate.vhdl | |
parent | b7693c4b70ba2514d9007891b267f1876473258e (diff) |
Add Makefile and testgenerator to run vhdl files
Diffstat (limited to 'sem6/dig/m2/nor_gate.vhdl')
-rw-r--r-- | sem6/dig/m2/nor_gate.vhdl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sem6/dig/m2/nor_gate.vhdl b/sem6/dig/m2/nor_gate.vhdl new file mode 100644 index 0000000..7524a05 --- /dev/null +++ b/sem6/dig/m2/nor_gate.vhdl @@ -0,0 +1,15 @@ +-- TEST_START{"inputs": ["a", "b"], "outputs": ["o"], "testin": ["00", "10", "01", "11"]}TEST_STOP +LIBRARY IEEE; +USE IEEE.STD_LOGIC_1164.all; + +ENTITY nor_gate IS + PORT( + a: IN STD_LOGIC; + b: IN STD_LOGIC; + o: OUT STD_LOGIC); +END nor_gate; + +ARCHITECTURE sample OF nor_gate IS +BEGIN + o <= a NOR b; +END sample; |