Instruction Set Simulation with pBlazIDE

R

Simulation control buttons

Status flags

Interrupt control for simulation

Data registers

Status window

 

pBlaze IDE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

File

Edit

View Settings

Help

 

 

 

 

 

 

 

 

 

 

 

 

Status

 

$00

Constant

DSIN

0

switches

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$00

 

 

 

 

 

 

$27

 

Zero

 

 

 

 

 

 

 

 

 

 

 

 

$01

declaration

DSOUT

1

7

6

5

4

3

2

1

0

 

 

 

$02

 

 

mailbox

DSIO

2

 

Carry

 

 

 

LEDs

 

 

 

 

 

 

 

 

 

 

Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Enable

 

 

 

 

 

 

 

 

 

 

 

 

 

s3

aliasing

input_value

Input, output, and I/O displays

$01

 

 

 

 

 

 

$A5

 

 

 

6

5

4

3

2

1

 

 

 

s4

 

 

LED_output

and controls defined by DSIN,

7

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt

 

$80

 

 

threshold_value

DSOUT, and DSIO directives

mailbox

 

 

 

 

 

 

 

 

Steady

 

 

 

 

$02

 

 

 

 

 

 

$F0

 

 

Defined start

 

 

6

5

4

3

2

1

 

Edge

 

$000

address

 

ORG

0

7

0

 

 

 

 

 

 

 

 

 

 

 

 

Timer

 

 

 

 

start :

Syntax-highlighted

Port ID

 

 

 

 

 

Port

 

 

Instruction

Instruction

 

 

 

 

 

 

 

 

assembly code

 

 

 

 

 

 

 

 

 

 

 

 

 

Value

50

 

address

code

EINT

 

Number

 

 

 

 

 

 

 

Registers

 

 

 

 

 

$001

$04300

 

 

 

 

Code coverage indicator.

 

input_value

,

swit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

00

 

 

00

 

8

 

 

 

 

 

 

Also, click to set or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

9

 

 

$002

$14380

 

 

 

 

remove breakpoint

 

 

input_value

,

thre

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00

 

 

00

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

A

 

 

$003

$31806

 

 

 

 

 

 

 

 

 

 

 

 

 

CALL

 

C , process_input

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00

 

 

00

 

 

 

 

 

 

 

Next instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

27

 

 

00

 

B

 

 

$004

$2C401

 

 

 

 

to be executed

 

OUT

 

LED_output

,

 

LEDs

 

 

 

 

 

 

4

 

 

 

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

F0

 

 

00

 

 

 

$005

$34001

 

 

 

 

 

 

 

 

 

 

 

 

 

JUMP

 

poll_loop

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

00

 

 

00

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$006

$04402

 

 

 

process_input

:

 

 

IN

 

LED_output

,

 

mailb

 

 

 

 

 

 

 

 

 

6

00

 

 

00

 

E

 

 

$007

$2C401

 

 

 

 

 

 

 

 

 

 

 

 

 

OUT

 

LED_output

,

 

LEDs

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

F

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00

 

 

00

 

 

 

 

 

 

 

 

 

 

 

 

Breakpoint set at

Scratchpad RAM display

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

only appears if STORE or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

this instruction

 

 

 

 

 

 

 

 

Scratchpad RAM

 

 

 

 

 

 

 

 

 

 

 

FETCH instructions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00 00 00 00 00 00 00 00 00 00 00 00

 

 

 

appear in application

 

 

 

 

 

 

 

 

 

 

 

 

$00 00 00 00 00

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$10 00

00

00

00

00

00

00

00

00

00

00

00

00

00

00

00

 

 

 

code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Current Stack

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Execution time at

 

 

 

 

 

 

 

$20 00

00

00

00

00

00

00

00

00

00

00

00

00

00

00

00

 

 

 

 

 

Pointer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$30 00 00 00 00

00 00 00 00 00 00 00 00 00 00 00 00

 

 

 

specified clock

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 1 2 3 4 5 6 7 8 9 A B C D E F

 

 

 

frequency

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Stack values

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Cursor row and

 

 

Number of instructions

 

Current Program

 

 

 

 

 

 

Assembler Phase

column

 

 

 

 

 

 

already executed up to

 

Counter

 

 

 

 

 

 

Program is Reset position

 

 

 

 

 

 

current code position

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mode: PicoBlaze-3

 

 

 

 

 

26: 1

 

 

 

Modified

 

 

 

Instructions: 4

 

Time: 95 ns

 

 

PC: $006

 

 

SP: 1 ($01)

 

Stack: $04

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UG129_c12_01_051604

Figure 12-1:The pBlazIDE Instruction Set Simulator (ISS)

Simulator Control Buttons

Table 12-2shows the various pBlazIDE control buttons and describes their functions.

Table 12-2:pBlazIDE Simulator Control Buttons

Button

Function

 

 

 

 

Assemble

Assemble the open document. If no errors are encountered, the simulator is invoked and

 

 

 

the other simulation control buttons are enabled.

 

 

 

 

Edit

Leave simulator and return to editor. All the simulation control buttons are disabled.

PicoBlaze 8-bit Embedded Microcontroller

www.xilinx.com

83

UG129 (v1.1.2) June 24, 2008

Page 83
Image 83
Xilinx UG129 manual Simulator Control Buttons, Instruction Set Simulation with pBlazIDE, Edit