Title | Problem solutions |
---|---|
Author | Anonymous User |
Course | Electrical engneering |
Institution | National University of Sciences and Technology |
Pages | 24 |
File Size | 1.5 MB |
File Type | |
Total Downloads | 8 |
Total Views | 135 |
problems solution to 1 Circuit Design with VHDL...
Circuit Design with VHDL, Volnei A. Pedroni, MIT Press, 2004
Circuit Design with VHDL Volnei A. Pedroni MIT Press – Aug. 2004
Problem Solutions (*) (*) Details about the physical circuits, codes, and binary algebra can be found in reference [1] below.
[1] V. A. Pedroni, Digital Electronics and Design with VHDL, Elsevier, 2008. Book website: http://textbooks.elsevier.com/9780123742704
Chapter 2: Code Structure
Problem 2.1: Multiplexer Solution: (Physical circuits and operation of multiplexers are described in chapter 11 of [1].) -------------------------------------------------LIBRARY ieee; USE ieee.std_logic_1164.all; -------------------------------------------------ENTITY mux IS PORT (a, b: IN STD_LOGIC_VECTOR(7 DOWNTO 0); sel: IN STD_LOGIC_VECTOR(1 DOWNTO 0); c: OUT STD_LOGIC_VECTOR(7 DOWNTO 0)); END mux; -------------------------------------------------ARCHITECTURE example OF mux IS BEGIN PROCESS (a, b, sel) BEGIN IF (sel="00") THEN c...