SourcePoint AMD Help

Table of Contents

wport

Display or change the contents of a 16-bit I/O port.

Syntax

[result =] [[px]] wport(io-addr) [= expr]

Where:

result

specifies an debug variable of type ord2 to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

[px]

is the viewpoint override, including punctuation ( [ ] ), specifying that the viewpoint is temporarily set to processor x of the boundary scan chain.ย  The processor can be specified as px (where x is the processor ID), or an alias you have defined for a given processor ID.ย  ALL cannot be used as a viewpoint override.

io-addr

specifies a 16-bit address in the processor I/O space. The available io-addr range is 0 to 0ffffh. The use of parentheses is optional.

expr

specifies a 16-bit number or an expression. Using this option writes the data to the specified I/O Port.

Discussion

Use the wport command to read from and write to the specified I/O port with the specified 16-bit data.

Example 1

To assign a 16-bit value to a port:

Command input:

wport 88h = 4321h

Example 2

To assign one port value to another port:

Command input:

wport 90h = wport 88

Example 3

To create a debug variable named portvar and assign a port value to it:

Command input:

define ord2 portvar
portvar = wport 90
portvar

Result:

4321H

Related Topics

ย