ISSUE 87

Number 87
Category errata
Synopsis 17.2.8: $readmem default start_addr should be lowest address
State lrmdraft
Class errata-simple
Arrival-DateJul 31 2002
Originator Tom Fitzpatrick <tfitz@cadence.com>
Release 2001b: 17.2.8
Environment
Description
17.2.8 describes $readmem.

It says that when start_addr is not specified, the default
start_addr is the left-hand address in the memory
declaration.

It says that if start_addr is specified, but not finish_addr,
then it starts at start_addr and goes in direction of
right-hand address in memory declaration.

Correct description is that if start_addr is not specified,
it starts at lowest addr. If start_addr is specified, but
not finish_addr, it starts at start_addr and counts toward
highest addr.

See
http://boydtechinc.com/btf/archive/btf_1998/0395.html
http://boydtechinc.com/btf/archive/btf_2000/1074.html
http://boydtechinc.com/btf/archive/btf_2000/1108.html
Fix

Changes based on
http://boydtechinc.com/btf/archive/btf_1998/0395.html

1. CHANGE 1st sentence in para. 7 FROM:

If no addressing information is specified within the system
task, and no address specifications appear within the data
file, then the default start address shall be the left-hand
address given in the declaration of the memory.

TO:

If no addressing information is specified within the system
task and no address specifications appear within the data
file, then the default start address shall be the lowest
address in the memory.


2. CHANGE 3rd sentence FROM:

If the start address is specified in the task without the
finish address, then loading shall start at the specified
start address and shall continue towards the right-hand
address given in the declaration of the memory.

TO:

If the start address is specified in the task without the
finish address, then loading shall start at the specified
start address and shall continue upward towards the highest
address in the memory.


3. CHANGE para. 8 FROM:

If both start and finish addresses are specified as
parameters to the task, then loading shall begin at the
start address and shall continue toward the finish address,
regardless of how the addresses are specified in the memory
declaration.

TO:

If both start and finish addresses are specified as
parameters to the task, then loading shall begin at the
start address and shall continue toward the finish address.
Note that if the start address is greater than the finish
address, then the address will be decremented between
consecutive loads rather than being incremented. Loading
shall continue to follow this direction even after an
address specification in the data file.


4. CHANGE para. 10 FROM:

A warning message shall be issued if the number of data
words in the file differs from the number of words in the
range implied by the start through finish addresses.

TO:

A warning message shall be issued if the number of data
words in the file differs from the number of words in the
range implied by the start through finish addresses and no
address specifications appear within the data file.

Audit-Trail
Unformatted


Hosted by Boyd Technology