diff options
author | fossee | 2019-09-03 10:51:06 +0530 |
---|---|---|
committer | fossee | 2019-09-03 10:51:06 +0530 |
commit | 7f369bc451dc4189529efa1e5c9febe52c68a876 (patch) | |
tree | dac91d36548334efc67ed1851e780a90ba0c9076 /nghdl/Example/trial_demux | |
parent | d4c0c9f05d7b6d5246c9a193fb4c5a01e2eae213 (diff) | |
download | eSim-7f369bc451dc4189529efa1e5c9febe52c68a876.tar.gz eSim-7f369bc451dc4189529efa1e5c9febe52c68a876.tar.bz2 eSim-7f369bc451dc4189529efa1e5c9febe52c68a876.zip |
separated nghdl
Diffstat (limited to 'nghdl/Example/trial_demux')
-rw-r--r-- | nghdl/Example/trial_demux/t_demux.vhdl | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/nghdl/Example/trial_demux/t_demux.vhdl b/nghdl/Example/trial_demux/t_demux.vhdl deleted file mode 100644 index 1e1f0bde..00000000 --- a/nghdl/Example/trial_demux/t_demux.vhdl +++ /dev/null @@ -1,32 +0,0 @@ -library IEEE; -use IEEE.STD_LOGIC_1164.all; - -entity t_demux is - port( - - F : in STD_LOGIC_vector(0 downto 0); - S0: in STD_LOGIC_vector(0 downto 0); - S1: in STD_LOGIC_vector(0 downto 0); - A: out STD_LOGIC_vector(0 downto 0); - B: out STD_LOGIC_vector(0 downto 0); - C: out STD_LOGIC_vector(0 downto 0); - D: out STD_LOGIC_vector(0 downto 0) - ); -end t_demux; - -architecture bhv of t_demux is -begin -process (F,S0,S1) is -begin - if (S0 ="0" and S1 = "0") then - A <= F; - elsif (S0 ="1" and S1 = "0") then - B <= F; - elsif (S0 ="0" and S1 = "1") then - C <= F; - else - D <= F; - end if; - -end process; -end bhv;
\ No newline at end of file |