
PS4013B-0600
Page 7 of 24
Advanced Hardware Architectures, Inc.
2.7
ENCODE, DECODE OR PASS-THROUGH OPERATIONS
The device performs three functions: encoding,
decoding and pass-through. As an encoder the device
outputs the message block followed by
“
corrected
”
check bytes. As a decoder, the device outputs the
corrected message bytes or correction vectors with or
without check bytes following the message. In pass-
through operation, the device passes the input data as
it is received. In all three operations, the input block
flows through the Input Buffer into the ECC module
and out of the Output Buffer. Latencies for all three
operations are the same.
The device is initialized for the three operations
as shown in the table below.
Table 1:
Initialization Register Settings for Encode, Decode and Pass-Through Operations
As an encoder, the device is used with the
Erasures feature enabled in the following sequence.
(Asserting the ERASE signal high enables the
Erasure feature.)
1) After initialization, the device receives the
message data followed by
“
dummy
”
check
bytes.
“
Dummy
”
check bytes are clocked
into the device with the ERASE signal
asserted. The number of
“
dummy
”
check
bytes must equal R.
2) The ECC core processes the block by
“
correcting
”
the check bytes and feeding
the codeword into the Output Buffer in
reverse order.
3) The block is then made available on the
output bus, DO. The state of the output
RDYON determines the availability of
data. ERR signal is asserted while the
“
corrected check bytes
”
are output on the
output bus, DO. CRTN is asserted low
during the last byte out of the chip
indicating that the previous block did not
exceed the error threshold.
As a decoder, the device works similar to the
encode operation in the following sequence.
1) Following initialization, the system clocks
the message data and the check bytes into
the Input Buffer. ERASE signal may be
asserted as desired by the system. State of
the output signal, RDYIN determines the
chip
’
s ability to accept data input on the DI
bus.
2) The ECC Core processes the block by
performing necessary corrections, and
feeds the codeword into the Output Buffer
in reverse order.
3) The data is available on the output port. The
state of the output signal, RDYON
determines the availability of valid data. An
output byte which has been corrected is
indicated by the device asserting ERR.
CRTN may be high or low depending upon
the THRESHOLD Register and ERC bit
programmed and the errors encountered.
INITIALIZATION
REGISTER
ERASURE MULTIPLIER
ERROR THRESHOLD
CHECK BYTES
BIT(S)
ENCODE
DECODE
PASS-THROUGH
[7:0]
[7:0]
[7:0]
Appendix A value Appendix A value Appendix A value
Set to R
R or less
Set to R
R
Set to the Number
of Message Bytes
in block, K
Set to the total of
Message and
Check bytes, N
0
0
0
System specific
1
System specific
System specific
System specific
0
0
0
System specific
[7:6] Reserved 0
0
R
R
MESSAGE BYTES
[7:0]
K
K
BLOCK LENGTH
[7:0]
N
N
CONTROL BYTE
0 (RESV)
1 (NOPAR)
2 (CRCTS)
3 (FOR)
4 (RAW)
5 (ERC)
0
0
1
System specific
1
0
0