Figure 281. Decoration Format: Sld - STMicroelectronics SPC572L series Reference Manual

Table of Contents

Advertisement

Decorated Storage Memory Controller (DSMC)
30.3.1.2.1 Simple Load (SLD)
0
1
2
3
4
sld.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -
{b,h,w}
This command performs a simple memory load of the reference size from the access
address. For this operation, the 12-bit field defined in decoration[4:15] must be zeroes else
the transfer is not performed and error terminated.
rdata = mem[accessAddress, size] // memory read
Support for generic bit field extract operations is best handled using existing core and
compiler capabilities involving standard load instructions followed by left and right shift
operations to emulate these functions.
30.3.1.2.2 Registers-and-Memory Exchange (SWAP)
0
1
2
3
4
cast.b 0 1 0 1
-
cast.h 0 1 0 1
-
cast.w 0 1 0 1
This command loads the contents of the referenced memory location into the core's rT
register and stores the source operand from the core's rA register (the decoration) into the
memory location.
tmp
= mem[accessAddress, size] // memory read
rdata = tmp// rT = rdata = tmp
if (size == 8)// store_operand - "modify"
store_operand = WD8
else if (size == 16)
else store_operand = {0x0, WD28}// zero-filled write data
mem[accessAddress, size] = store_operand// memory write
Note for the word size operation (swap.w), the data value specified in the low-order 28 bits
of the decoration is zero filled in the most significant bits to create the required 32 bit store
operand.
652/2058
5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Figure 281. Decoration Format: SLD

5
6
7
8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Figure 282. Decoration Format: SWAP
store_operand = WD16
DocID027809 Rev 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
WD28
-
-
-
-
-
-
-
-
-
-
-
-
WD16
RM0400
-
-
-
-
-
WD8

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SPC572L series and is the answer not in the manual?

Questions and answers

Table of Contents