Initial commit
This commit is contained in:
15
first/or.vhdl
Normal file
15
first/or.vhdl
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Simple OR gate design
|
||||
library IEEE;
|
||||
use IEEE.std_logic_1164.all;
|
||||
|
||||
entity or_gate is
|
||||
port(
|
||||
a: in std_logic;
|
||||
b: in std_logic;
|
||||
q: out std_logic);
|
||||
end or_gate;
|
||||
|
||||
architecture rtl of or_gate is
|
||||
begin
|
||||
q <= a or b;
|
||||
end rtl;
|
||||
Reference in New Issue
Block a user