Created
April 26, 2024 09:52
-
-
Save keithoma/7438305296e0a562ec5eaf47fdcd2b28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| entity mux1 is | |
| port( | |
| A : in bit; | |
| B : in bit; | |
| SEL : in bit; | |
| Y : out bit); | |
| end mux1; | |
| architecture beh of mux1 is | |
| signal sel_n, and1_out, and2_out: bit; | |
| begin | |
| sel_n <= not SEL after 1 ns; | |
| and1_out <= A and sel_n after 1 ns; | |
| and2_out <= B and SEL after 1 ns; | |
| Y <= and1_out or and2_out after 1 ns; | |
| end beh; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment