CENG 342 – Digital Systems
Register-Transfer (RT) Level Combinational Circuit Larry Pyeatt
SDSM&T
CENG 342 Digital Systems Register-Transfer (RT) Level Combinational - - PowerPoint PPT Presentation
CENG 342 Digital Systems Register-Transfer (RT) Level Combinational Circuit Larry Pyeatt SDSM&T RT-Level Description Gate-level Design RT-level Design (module-level) Adders Comparators Decoders Multiplexers VHDL operators and
SDSM&T
1 library ieee; 2 use ieee.numeric_std.all -- include numeric_std package
1
2
3
4
5
6
7
1
2
3
4
5
6
7
8
9
10
1 Y <= A;
2 Y <= A and B; -- Y’Length = A’Length = B’Length 3 W <= A > B;
4 Y <= A + B;
5 V <= A * B;
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0); 3 variable i: natural; 4 ... 5
6
7
8
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0);
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0);
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0);
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0);
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0);
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0);
1 signal a1, a2, a3, a4: std_logic_vector(3 downto 0); 2 signal b1, b2, b3, b4: unsigned(3 downto 0);
1
2
3
4
5
6
1
2
3
4
5
1
2
3
4
1 y <= a_in when oe=’1’ else ’Z’;
1
2 bi <= sig_out when dir=’1’ else ’Z’; 3 sig_in <=bi;