A Windows BS test
controller application
J. M. Martins Ferreira
FEUP / DEEC - Rua Dr. Roberto Frias
4200-537 Porto - PORTUGAL
Tel. 351 225 081 748 / Fax: 351 225 081 443
([email protected] / http://www.fe.up.pt/~jmf)
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
1
Objectives
• To enable the students to write and
execute real test programs (using the PC
parallel port)
• To provide a tool for test program validation
• To enable hands-on sessions
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
2
Outline
• The test set up
• The Windows BS test controller application
– Main window
– Control bar
– Status information
– Pop-down menus
– Editing area
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
3
Test set up
• A PC running Windows (2000, ME, XP,…),
a 5 V power supply, a flat-cable connector
(for the parallel port)
and the 1149.1 /
1149.5 hardware
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
4
The JTAGer application
(main window)
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
5
JTAGer
control bar
Save file
Open file
Run: Eventby-Event
Windows:
State diagram
Run: Stepby-Step
Windows:
Waveforms
Run:
Reset
Utilities:
Bitstream
shifter
New file
Search
Clear all
breakpoints
Goto line
number
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
Run: Speed
Run
Run: Pause
Run: Execute
code
Help
JTAGer:
About
6
Status information
Displays the
state of each
error flag (there
are eight error
flags for each
TAP)
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
Displays the
contents of each
counter (there is
one general
purpose counter
for each TAP)
7
The pop-down menus
(File, Edit, Run)
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
8
The pop-down menus
(Windows)
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
9
The pop-down menus
(Utilities)
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
10
The editing area
The reset button
switches between
run and edit modes
Breakpoints may be inserted or
removed using the leftmost column
Syntax of each line:
label: instruction;
// comment
(anything after “//” or “!” is seen as a comment)
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
11
A small application example
Leonardo da Vinci ALLEGRO
© J. M. Martins Ferreira - University of Porto (FEUP / DEEC)
12
Download

PPT