
Memories BRAM80KECC
Speedster22i Macro Cell Library
AchronixSemiconductorProprietary PAGE 151
BRAM80KECC Modes of Operation
There are three modes of operation for the BRAM80KECC block defined by the
encoder_enableanddecoder_enableparametershowninTable6‐45
: BRAM80KECCModes
ofOp
eration.
Table 6-45: BRAM80KECC Modes of Operation
encoder_enable decoder_enable BRAM80KECC Operation Mode
1’b0 1’b0 Unsupported mode of operation
1’b0 1’b1 ECC decode-only mode
1’b1 1’b0 ECC encode-only mode
1’b1 1’b1 Normal ECC encode/decode mode
ECC Encode/Decode Operation Mode
The ECC Encode/Decode operation mode utilizes both the ECC Encoder and the ECC
Decoder.The32‐bituserdataiswrittenintothememoryviathedin[31:0] inputs.TheECC
Encoder generates the 7‐bit error correction syndrome and writes it into the memory
alongside the data word via the Parity (d
inp) and Extended Parity (d inpx) inputs.During
readoperations,the ECCDecoderreadsthe 32‐bit userdataand the7‐bitsyndromedatato
generate an error correction mask.The ECC decoder will correct any single bit error and
detect, but not correct, any two‐bit error. If the ECC de
coder detects a single bit error, it
automaticallycorrectstheerrorandplacesthecorrecteddataonthedout[31:0]pins aswellas
assertsthesbit_errorflag.The memorylocationcontaining the errorisnotcorrected.Ifthe
ECCdecoderdetectsatwo‐biterror,iswillplacetheuncorrecteddataonthedou
t[31:0]pins
andassertthedbit_errorflagonecycleafterthethedatawordisread.
ECC Encode-Only Operation Mode
The ECC Encode‐Only operation has the ECC Encoder enabled and the ECC Decoder
disabled.Thismodeallowstheusertowritethe user‐provided32‐bitdataalongsidethe7‐bit
errorcorrectionsyndrometothememoryduringwriteoperations.Readoperationsallowthe
user to read the 32‐bit us
er data alongside the error syndrome directly out of the memory
withoutcorrectingthedata.TheEncode‐Onlycanbeusedasabuildingblocktohaveerror
correctionforoff‐chipmemories.
ECC Decode-Only Operation Mode
The ECC Decode‐Only operation has the ECC Encoder disabled and the ECC Decoder
enabled.This mode bypasses the ECC Encoder and allows the user to write 40‐bit data
directly into the BRAM80KECC memory during write operations.Read operations use the
memory’sdoutpx[2:0] anddoutp[3:0]bitsas a7‐bitsy
ndromefor errorcorrection.The ECC
decoderwill correctanysingle biterrorand detect,butnot correct, anytwo‐biterror.If the
ECC decoder detects a single bit error, it automatically corrects the error and places the
corrected data on the dout[31:0] pins as well as asserts the sbit_error flag. The memory
loca
tion containing the error is not corrected.If the ECC decoder detects a two‐biterror,is
willplacetheuncorrecteddataonthedout[31:0]pinsandassertthedbit_errorflagonecycle
afterthethedatawordisread.TheEncode‐Onlycanbeusedasabuildingblocktohav
eerror
correctionforoff‐chipmemories.
Commenti su questo manuale