aboutsummaryrefslogtreecommitdiff
path: root/works/life/computer-organization-experiment/multiplexer_8_2.vhdl
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-26 21:24:20 +0800
committercrupest <crupest@outlook.com>2021-11-26 21:24:20 +0800
commite3fb643403ae71a38cba404e8d548d7a49cfdb88 (patch)
treedb17171e551f53b697b78320f18acfbaab8140f6 /works/life/computer-organization-experiment/multiplexer_8_2.vhdl
parent1ea48b1fcb7ac64935018b1ced2d0f11982872ea (diff)
downloadcrupest-e3fb643403ae71a38cba404e8d548d7a49cfdb88.tar.gz
crupest-e3fb643403ae71a38cba404e8d548d7a49cfdb88.tar.bz2
crupest-e3fb643403ae71a38cba404e8d548d7a49cfdb88.zip
import(life): Add computer organization 5.
Diffstat (limited to 'works/life/computer-organization-experiment/multiplexer_8_2.vhdl')
-rw-r--r--works/life/computer-organization-experiment/multiplexer_8_2.vhdl10
1 files changed, 1 insertions, 9 deletions
diff --git a/works/life/computer-organization-experiment/multiplexer_8_2.vhdl b/works/life/computer-organization-experiment/multiplexer_8_2.vhdl
index d9e80f8..6be0bd2 100644
--- a/works/life/computer-organization-experiment/multiplexer_8_2.vhdl
+++ b/works/life/computer-organization-experiment/multiplexer_8_2.vhdl
@@ -8,13 +8,5 @@ end multiplexer_8_2;
architecture behaviour of multiplexer_8_2 is
begin
- b: process is
- begin
- if S = '1' then
- Y <= A1;
- else
- Y <= A0;
- end if;
- wait for 1 ps;
- end process b;
+ Y <= A0 when S = '0' else A1;
end behaviour;