DOC PREVIEW
MASON ECE 448 - Lecture 3 Combinational-Circuit Building Blocks

This preview shows page 1-2-3-4-5-33-34-35-36-66-67-68-69-70 out of 70 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 70 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Combinational-Circuit Building Blocks Data Flow Modeling of Combinational LogicRequired readingSlide 3VHDL Design StylesSynthesizable VHDLSlide 6Slide 7SignalsMerging wires and busesSplitting busesSlide 11Slide 12Fixed Shift in VHDLFixed Rotation in VHDLSlide 15Slide 16Slide 17Slide 18Slide 19Slide 20Slide 21Slide 22Slide 23Logic OperatorsNo Implied PrecedenceSlide 262-to-1 MultiplexerVHDL code for a 2-to-1 MultiplexerCascade of two multiplexersVHDL code for a cascade of two multiplexersOperatorsPriority of logic and relational operatorsVHDL operatorsSlide 34Slide 35Slide 362-to-4 DecoderVHDL code for a 2-to-4 DecoderSlide 3916-bit Unsigned AdderArithmetic Operators in VHDL (1)Arithmetic Operators in VHDL (2)VHDL code for a 16-bit Unsigned AdderSlide 444-bit Number ComparatorVHDL code for a 4-bit Unsigned Number ComparatorVHDL code for a 4-bit Signed Number ComparatorSlide 48Slide 49Slide 50Tri-state Buffer – example (1)Tri-state Buffer – example (2)Slide 53Priority EncoderVHDL code for a Priority EncoderSlide 56Slide 57MLU Block DiagramMLU: Entity DeclarationMLU: Architecture Declarative SectionMLU - Architecture BodySlide 62Slide 63Conditional concurrent signal assignmentMost often implied structureSlide 66Selected concurrent signal assignmentMost Often Implied StructureAllowed formats of choices_kAllowed formats of choice_k - exampleGeorge Mason UniversityECE 448 – FPGA and ASIC Design with VHDLCombinational-Circuit Building BlocksData Flow Modeling of Combinational LogicECE 448Lecture 32ECE 448 – FPGA and ASIC Design with VHDLRequired reading• S. Brown and Z. Vranesic, Fundamentals of Digital Logic with VHDL Design Chapter 6, Combinational-Circuit Building Blocks Chapter 5.5, Design of Arithmetic Circuits Using CAD Tools • P. Chu, FPGA Prototyping by VHDL ExamplesChapter 3, RT-level combinational circuit3ECE 448 – FPGA and ASIC Design with VHDLVHDL Design Styles4ECE 448 – FPGA and ASIC Design with VHDLVHDL Design StylesComponents andinterconnectsstructuralVHDL Design StylesdataflowConcurrent statementsbehavioral(sequential)• Registers• State machines• Instruction decodersSequential statementsSubset most suitable for synthesis • Testbenches5ECE 448 – FPGA and ASIC Design with VHDLSynthesizable VHDLDataflow VHDL Design StyleVHDL codesynthesizableVHDL codesynthesizableDataflow VHDL Design Style6ECE 448 – FPGA and ASIC Design with VHDLData-Flow VHDL• concurrent signal assignment ()• conditional concurrent signal assignment (when-else)• selected concurrent signal assignment (with-select-when)• generate scheme for equations (for-generate)Concurrent Statements7ECE 448 – FPGA and ASIC Design with VHDLModeling Wires and Buses8ECE 448 – FPGA and ASIC Design with VHDLSignals SIGNAL a : STD_LOGIC;SIGNAL b : STD_LOGIC_VECTOR(7 DOWNTO 0);wireabusb189ECE 448 – FPGA and ASIC Design with VHDLMerging wires and busesSIGNAL a: STD_LOGIC_VECTOR(3 DOWNTO 0);SIGNAL b: STD_LOGIC_VECTOR(4 DOWNTO 0);SIGNAL c: STD_LOGIC;SIGNAL d: STD_LOGIC_VECTOR(9 DOWNTO 0);d <= a & b & c;4510abcd10ECE 448 – FPGA and ASIC Design with VHDLSplitting busesSIGNAL a: STD_LOGIC_VECTOR(3 DOWNTO 0);SIGNAL b: STD_LOGIC_VECTOR(4 DOWNTO 0);SIGNAL c: STD_LOGIC;SIGNAL d: STD_LOGIC_VECTOR(9 DOWNTO 0);a <= d(9 downto 6);b <= d(5 downto 1);c <= d(0);4510abcd11ECE 448 – FPGA and ASIC Design with VHDLCombinational-CircuitBuilding Blocks12ECE 448 – FPGA and ASIC Design with VHDLFixed Shifters & Rotators13ECE 448 – FPGA and ASIC Design with VHDLFixed Shift in VHDLA(3)A(2)A(1)A(0)‘0’ A(3) A(2) A(1)A>>1SIGNAL A : STD_LOGIC_VECTOR(3 DOWNTO 0);SIGNAL AshiftR: STD_LOGIC_VECTOR(3 DOWNTO 0);AshiftR <= AshiftRA14ECE 448 – FPGA and ASIC Design with VHDLFixed Rotation in VHDLA(3)A(2)A(1)A(0)A(2) A(1) A(0) A(3)A<<<1SIGNAL A : STD_LOGIC_VECTOR(3 DOWNTO 0);SIGNAL ArotL: STD_LOGIC_VECTOR(3 DOWNTO 0);ArotL <= ArotLA15ECE 448 – FPGA and ASIC Design with VHDLGates16ECE 448 – FPGA and ASIC Design with VHDLx 1 x 2 x n x 1 x 2 x n + + + x 1 x 2 x 1 x 2 + x 1 x 2 x n x 1 x 2 x 1 x 2 x 1 x 2 x n   (a) AND gates (b) OR gatesx x (c) NOT gateBasic Gates – AND, OR, NOT17ECE 448 – FPGA and ASIC Design with VHDLx 1 x 2 x n x 1 x 2 ¼ x n + + + x 1 x 2 x 1 x 2 + x 1 x 2 x n x 1 x 2 x 1 x 2 × x 1 x 2 ¼ x n × × × (a) NAND gates(b) NOR gates Basic Gates – NAND, NOR18ECE 448 – FPGA and ASIC Design with VHDLx x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 x 1 x 2 1 x 2 + = (a) x 1 x 2 + x 1 x 2 = (b) DeMorgan’s Theorem and other symbols for NAND, NOR19ECE 448 – FPGA and ASIC Design with VHDLBasic Gates – XOR(b) Graphical symbol(a) Truth table 0 0 1 1 0 1 0 1 0 1 1 0 x 1 x 2 x 1 x 2 f x 1 x 2 = f x 1 x 2 = (c) Sum-of-products implementationf x 1 x 2 = x 1 x 220ECE 448 – FPGA and ASIC Design with VHDLBasic Gates – XNOR(b) Graphical symbol(a) Truth table 0 0 1 1 0 1 0 1 1 0 0 1 x 1 x 2 x 1 x 2 f x 1 x 2 = f x 1 x 2 = (c) Sum-of-products implementationf x 1 x 2 = x 1 x 2 x 1 x 2 = .21ECE 448 – FPGA and ASIC Design with VHDLData-flow VHDL: Examplexycinscout22ECE 448 – FPGA and ASIC Design with VHDLData-flow VHDL: Example (1)LIBRARY ieee ;USE ieee.std_logic_1164.all ;ENTITY fulladd ISPORT ( x : IN STD_LOGIC ; y : IN STD_LOGIC ; cin : IN STD_LOGIC ; s : OUT STD_LOGIC ; cout : OUT STD_LOGIC ) ;END fulladd ;23ECE 448 – FPGA and ASIC Design with VHDLData-flow VHDL: Example (2)ARCHITECTURE dataflow OF fulladd ISBEGINs <= x XOR y XOR cin ;cout <= (x AND y) OR (cin AND x) OR (cin AND y) ;END dataflow ;24ECE 448 – FPGA and ASIC Design with VHDLLogic Operators•Logic operators•Logic operators precedenceand or nand nor xor not xnor notand or nand nor xor xnorHighestLowestonly in VHDL-9325ECE 448 – FPGA and ASIC Design with VHDL Wanted: y = ab + cdIncorrecty <= a and b or c and d ; equivalent toy <= ((a and b) or c) and d ;equivalent toy = (ab + c)dCorrecty <= (a and b) or (c and d) ;No Implied Precedence26ECE 448 – FPGA and ASIC Design with VHDLMultiplexers27ECE 448 – FPGA and ASIC Design with VHDL2-to-1 Multiplexer(a) Graphical symbol(b) Truth table01fsw0w1fsw0w10128ECE 448 – FPGA and ASIC Design with VHDLVHDL code for a 2-to-1 MultiplexerLIBRARY ieee ;USE


View Full Document

MASON ECE 448 - Lecture 3 Combinational-Circuit Building Blocks

Documents in this Course
Load more
Download Lecture 3 Combinational-Circuit Building Blocks
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture 3 Combinational-Circuit Building Blocks and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 3 Combinational-Circuit Building Blocks 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?