SpW-10X

Ref.:

UoD_SpW-10X_

 

 

 

 

SpaceWire Router

 

UserManual

 

 

 

 

Issue:

3.4

 

 

 

 

 

User Manual

 

 

 

 

 

Date:

11th July 2008

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Mask

4 bytes for the mask to modify a 32-bit register.

 

 

 

 

Length

 

 

 

 

 

 

 

 

 

 

Header

The header CRC used to detect errors in the header part of the command

1

 

CRC

packet.

 

 

 

 

 

 

 

 

Data and

The data and mask values to write to the SpaceWire router. The data is

8

 

Mask

written dependent on the mask as shown in Figure 7-8.

 

 

 

 

 

 

 

 

 

Data and

The data and mask CRC used to detect errors in the data part of the

 

1

 

Mask CRC

command packet.

 

 

 

 

 

 

 

 

 

 

 

 

A Read-Modify-Write command modifies the bits of a SpaceWire router register dependent on the contents of the register (Register Data), the command data (Command Data) and the command mask value (Mask) as follows:

Register Value = (Mask AND Command Data) OR (NOT Mask AND Register Data)

An example is shown below, the highlighted bits are set or reset by the command.

31

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

15

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

0

0

0

1

1

 

0

0

0

0

0

0

0

0

Command Data

31

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

15

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

 

0

0

0

0

0

0

0

0

Command Mask

31

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

15

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

1

0

1

0

0

1

0

0

 

0

0

0

0

1

0

1

0

Register Data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Returned to source

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(Mask AND Command Data) OR (NOT Mask and Register Data)

 

 

 

 

 

 

 

 

 

 

31

 

 

 

 

 

 

 

23

 

 

 

 

 

 

 

15

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

1

1

0

0

0

1

1

0

0

0

0

1

0

1

0

Data Written to Register

Figure 7-8 Read-Modify-Write example operation

Preliminary

68

Page 68
Image 68
Atmel SpW-10X user manual Read-Modify-Write example operation