copy

Copy

copy RA, RB

Initiates a hardware copy (accelerator) operation.

Encoding

Binary Layout
31
0:5
/
6:10
RA
11:15
RB
16:20
706
21:30
/
31
 
Format X-form
Opcode 0x7C20060C
Extension Privileged

Operands

  • RA
    Dest/Control
  • RB
    Source

Example

copy r4, r5

Related

More in Privileged

Reference

Description

The 'copy' instruction loads a 128-byte block of data and associated metadata from memory into the copy buffer. The effective address (EA) is calculated as the sum of RA and RB. If EA is not aligned to 128 bytes or if the storage is Caching Inhibited, appropriate error handlers are invoked.

Operation

if RA = 0 then
    b ← 0
else
    b ← (RA)
EA ← b + (RB)
copy_buffer ← memory(EA, 128) || MEMmetadata(EA, 128)

Programming Note

This instruction is treated as a Load, except that the data transfer ordering is described in Section 1.7.1.1.