CENG 342 – Digital Systems
Routing Circuits Larry Pyeatt
SDSM&T
CENG 342 Digital Systems Routing Circuits Larry Pyeatt SDSM&T - - PowerPoint PPT Presentation
CENG 342 Digital Systems Routing Circuits Larry Pyeatt SDSM&T Routing Circuit Concurrent assignment statements: Conditional signal assignment and Selected signal assignment Instead of being executed sequentially, statements are mapped
SDSM&T
1 r <= a+b+c when m=n else 2
3
1 library ieee; 2 use ieee.std_logic_1164.all; 3 4 entity prio_encoder is 5
6
7
8
9 end prio_encoder; 10 11 architecture cond_arch of prio_encoder is 12 begin 13
14
15
16
17
18 end cond_arch;
1 library ieee; 2 use ieee.std_logic_1164.all; 3 4 entity decoder_2_4 is 5
6
7
8
9
10 end decoder_2_4; 11 12 architecture cond_arch of decoder_2_4 is 13 begin 14
15
16
17
18
19 end cond_arch;
1 signal sel: std_logic_vector(1 downto 0) 2 ... 3 with sel select 4
5
6
1 signal sel: std_logic_vector(1 downto 0) 2 ... 3 with sel select 4
5
6
20 architecture sel_arch of prio_encoder is 21 begin 22
23
24
25
26
27
28 end sel_arch;
21 architecture sel_arch of decoder_2_4 is 22
23 begin 24
25
26
27
28
29
30
31 end sel_arch;