Lecture 16 PicoBlaze I/O - PowerPoint PPT Presentation

About This Presentation
Title:

Lecture 16 PicoBlaze I/O

Description:

Lecture 16 PicoBlaze I/O & Interrupt Interface ECE 448 FPGA and ASIC Design with VHDL ECE 448 FPGA and ASIC Design with VHDL * ECE 448 FPGA and ASIC ... – PowerPoint PPT presentation

Number of Views:99
Avg rating:3.0/5.0
Slides: 34
Provided by: DavidH558
Category:

less

Transcript and Presenter's Notes

Title: Lecture 16 PicoBlaze I/O


1
Lecture 16PicoBlaze I/O Interrupt Interface
ECE 448 FPGA and ASIC Design with VHDL
2
Required reading
  • P. Chu, FPGA Prototyping by VHDL Examples
  • Chapter 16, PicoBlaze I/O Interface
  • Chapter 17, PicoBlaze Interrupt Interface

3
Syntax and Terminology
Syntax Example Definition
sX KK PORT(KK) PORT((sX)) RAM(KK)
s7 ab PORT(2) PORT((s1)) RAM(4)
Value at register 7 Value ab (in hex) Input value
from port 2 Input value from the port specified
by register s1 Value from the RAM location 4
4
Addressing modes
5
Output Decoding of Four Output Registers
6
Output Instructions
C Z
OUTPUT sX, KK PORT(KK) lt sX OUTPUT
sX, (sY) PORT((sY)) lt sX
- -
DIR IND
- -
7
Timing Diagram of an Output Instruction
8
Truth Table of a Decoding Circuit
9
Input Instructions
C Z
INPUT sX, KK sX lt PORT(KK) INPUT sX,
(sY) sX lt PORT((sY))
- -
DIR IND
- -
10
Block Diagram of Four Continuous-Access Ports
11
Timing Diagram of an Input Instruction
12
Block Diagram of Four Single-Access Ports
13
FIFO Interface
clk
rst
clk
rst
FIFO
dout
din
8
8
empty
full
write
read
14
Operation of the Standard FIFO
A
B
C
D
-----
15
Operation of the First-Word Fall-Through FIFO
16
(No Transcript)
17
Timing Diagram of an Input Instruction
18
Interrupt Flow
19
Timing Diagram of an Interrupt Event
20
(No Transcript)
21
Interrupt Related Instructions
RETURNI ENABLE PC lt STACKTOS TOS
lt TOS 1 I lt 1 Clt PRESERVED C
Zlt PRESERVED Z RETURNI DISABLE PC
lt STACKTOS TOS lt TOS 1 I lt 0
Clt PRESERVED C Zlt PRESERVED Z ENABLE
INTERRUPT I lt1 DISABLE INTERRUPT
I lt0
22
Interrupt Interface with a Single Event
23
Interrupt Interface with Two Requests
24
PicoBlaze Input/OutputClass Exercise
25
Task
  • Draw a detailed block diagram of the digital
    system including
  • PicoBlaze-6, KCPSM6
  • 4k x 18 instruction ROM required for the basic
    operation of PicoBlaze
  • 64 x 8 external data RAM visible under addresses
    0x00-0x3F
  • 64 x 8 external data ROM visible under addresses
    0x40-0x7F
  • two input registers with the virtual addresses
    0x80 and 0xCF
  • two output registers with the virtual addresses
    0x80 and 0xC0
  • D flip-flop with the output Q connected to the
    interrupt input of the PicoBlaze core, input SET
    connected to the external port INT, and input
    CLR connected to an appropriate output of the
    PicoBlaze core

26
Assumptions
  • input register with the address 0x80 is the
    same as the output register with the address
    0x80
  • the input and output registers, data RAM, and
    data ROM specified above are the only i/o
    devices that the PicoBlaze core is communicating
    with
  • your system needs to be able to allow the
    PicoBlaze core to write to all aforementioned
    output registers and data RAM, and read from
    all the aforementioned input registers, data RAM,
    and data ROM, using instructions OUTPUT and
    INPUT, respectively
  • you need to provide all details of the address
    decoder, and build it out of basic logic
    components you are familiar with
  • all registers and flip-flops have a reset input
    connected to the external port RESET.

27
Requirements
Please clearly mark on your schematic sizes
of all memories and registers sizes and
directions of all buses.
28
Interface of PicoBlaze-6
29
rdl reset during load
The program memory has the option to include the
JTAG Loader utility which facilitates rapid
development of your KCPSM6 program. rdl is a
reset during load signal associated with the
loader, which needs to be connected to the reset
input of the processor.
30
Development Flow of a System with PicoBlaze
31
PicoBlaze Input/OutputClass ExerciseSolutions
32
(No Transcript)
33
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com