ASIC 121: Practical VHDL Digital Design for FPGAs - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

ASIC 121: Practical VHDL Digital Design for FPGAs

Description:

ASIC 121: Practical VHDL Digital Design for FPGAs Tutorial 1 September 27, 2006 Contributions I have taken some of the s in this tutorial from Jeff Wentworth s ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 24
Provided by: asicUwate
Category:

less

Transcript and Presenter's Notes

Title: ASIC 121: Practical VHDL Digital Design for FPGAs


1
ASIC 121 Practical VHDL Digital Design for FPGAs
  • Tutorial 1
  • September 27, 2006

2
Contributions
  • I have taken some of the slides in this tutorial
    from Jeff Wentworths ASIC 120

3
Digital vs Analog
  • Analog Continuous time varying signal.
  • Application Radio
  • Digital Abstraction. Two signals 0 and 1.
  • Application Computer Processors

4
Switches
  • Switches are the basic building block of Digital
    hardware
  • Have 2 states
  • On 1, Off 0
  • Can be electrically controlled
  • Ex. Relay, Vacuum Tube, Transistor

5
Transistor
  • Used in all modern digital hardware
  • 3 Terminal Device
  • Operation
  • If C is high voltage (1) then current flows
    between A and B

6
Logic Gates
  • 2-input, 1-output devices
  • Simpler than working with switches directly
  • Inverter (NOT gate)

Input
Output
Truth Table
A X
0 1
1 0
7
Inverter Implementation
  • When Input is 1
  • Transistor 1 off
  • Transistor 2 on
  • Output 0 (ground)
  • When Input is 0
  • Transistor 1 on
  • Transistor 2 off
  • Output 1 (5V)

8
Combinational Logic AND
A B X
0 0 0
0 1 0
1 0 0
1 1 1
9
Combinational Logic OR
A B X
0 0 0
0 1 1
1 0 1
1 1 1
10
Combinational Logic XOR
A B X
0 0 0
0 1 1
1 0 1
1 1 0
11
Combinational Logic NAND
A B X
0 0 1
0 1 1
1 0 1
1 1 0
12
Combinational Logic NOR, XNOR
A B X
0 0 1
0 1 0
1 0 0
1 1 0
A B X
0 0 1
0 1 0
1 0 0
1 1 1
13
Building Combinational Circuits
A B C X
0 0 0 0
0 1 0 0
1 0 0 1
1 1 0 1
0 0 1 0
0 1 1 1
1 0 1 0
1 1 1 1
14
Combinational Logic MUX(multiplexer)
A B C X
0 0 0 0
0 1 0 0
1 0 0 1
1 1 0 1
0 0 1 0
0 1 1 1
1 0 1 0
1 1 1 1
15
MUXs
  • A MUX can be thought of as an if statement.
  • If C 0 then
  • X A
  • Else if C 1 then
  • X B
  • This will be useful later

16
Binary Addition
  • Adding 2 bits
  • 000
  • 011
  • 101
  • 1110
  • So we need 2 inputs and 2 outputs

17
Half Adder
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
18
Full Adder (3-bit addition)
19
Independent Tasks
  • Modelsim VHDL hardware simulator
  • Download evaluation copy from
  • http//www.model.com/downloads/evaluations.asp
  • Quartus II FPGA Synthesis Tool
  • Download Web Edition from
  • http//www.altera.com/products/software/products/q
    uartus2web/sof-quarwebmain.html

20
Development Boards
  • For interested students there are development
    boards available
  • Check out the DE2 http//www.altera.com/educatio
    n/univ/materials/boards/unv-de2-board.html
  • The DE2 comes with lab exercises and design
    examples
  • Not cheap 269 US

21
Quartus II Exercise
  • Open Quartus II, Select File-gtNew Project Wizard,
    Select a valid working directory (should be an
    empty folder)
  • Name the project and entity half_adder
  • Click next for all other menus
  • Select File-gtNew. Select VHDL File

22
Quartus II Exercise Cont
  • Save the file as half_adder.vhd, with the
    contents
  • library ieee
  • use ieee.std_logic_1164.all
  • entity half_adder is
  • Port ( i_A, i_B in STD_LOGIC
  • o_Sum, o_Carry out STD_LOGIC
  • )
  • end half_adder
  • architecture main of half_adder is
  • begin
  • o_Sum lt i_A xor i_B
  • o_Carry lt i_A and i_B
  • end main

23
Quartus II Exercise Cont
  • Select Processing-gtStart-gtAnalysis and Synthesis
  • Make sure it completes successfully
  • Next Step
  • Read through the help file under simulation
  • Try Simulating the design
Write a Comment
User Comments (0)
About PowerShow.com