ocp_mib: Register Map¶
Generated by tools/regmap.py from hdl/ocp_mib/regs/ocp_regs.yml, do not edit.
The same description generates the VHDL package ocp_regs_pkg and the C header sw/ocp_regs.h.
Byte addresses of 32-bit registers on the AXI4-Lite port (8-bit address); unused addresses and bits read as zero. The ID register reads 0x4F435003.
| Access | Meaning |
|---|---|
| RO | Read only |
| RW | Read and write |
| W1 | Write one: command; reads as zero |
| W1C | Sticky flag; write one to clear |
| RC | Read only; any write to the register clears it |
Registers¶
| Address | Register | Description |
|---|---|---|
| 0x000 | ID | Identification of the core and version of the register map |
| 0x004 | GENERICS | Implementation generics of the channel |
| 0x008 | IMAGE_X | Image width NX (CCSDS 5.3.2.2); with the runtime configuration the width of the last image that started |
| 0x00C | IMAGE_Y | Image height NY; with the runtime configuration the height of the last image that started |
| 0x010 | IMAGE_Z | Number of bands NZ; with the runtime configuration the bands of the last image that started |
| 0x014 | SAMPLES | Samples and user-defined data |
| 0x018 | ORDER | Sample encoding order (CCSDS 5.4.2) |
| 0x01C | CODER | Compressed image |
| 0x020 | PREDICTOR | Predictor (CCSDS 5.3.3.2, 5.3.3.4, 5.3.3.5) |
| 0x024 | WEIGHTS | Weights of the predictor (CCSDS 5.3.3.2); VMAX, VMIN and UPDATE_INTERVAL with the runtime parameters of the last image that started |
| 0x028 | ADAPTIVE | Sample-adaptive or hybrid entropy coder (CCSDS 5.3.4.2, 5.3.4.3); zero with the block-adaptive coder; with the runtime parameters the values of the last image that started (ACCU_INIT only with an accumulator initialisation constant) |
| 0x02C | BLOCK | Block-adaptive entropy coder (CCSDS 5.3.4.4); zero with the other coders; REF_INTERVAL with the runtime parameters of the last image that started |
| 0x040 | IMAGES_DONE | Compressed images output without error |
| 0x044 | IMAGES_ABORTED | Compressed images output with an error: aborted, ended by a faulty SDU, or with a missing end mark |
| 0x048 | SDU_ERRORS | Faulty SDUs forwarded (flagged by the user signal or not a whole number of samples) |
| 0x04C | SDUS_DISCARDED | SDUs discarded after a faulty SDU, up to the end of its image |
| 0x050 | ECC_CORRECTED | Corrected single bit errors in the memories of the compressor (clock cycles with at least one) |
| 0x054 | ECC_UNCORRECTABLE | Detected double bit errors in the memories of the compressor (clock cycles with at least one) |
| 0x060 | CONTROL | Runtime configuration: commands (zero without the runtime configuration) |
| 0x064 | STATUS | Runtime configuration: state (zero without the runtime configuration) |
| 0x068 | NEXT_X | Runtime configuration: image width NX of the next images (zero without the runtime configuration) |
| 0x06C | NEXT_Y | Runtime configuration: image height NY of the next images (zero without the runtime configuration) |
| 0x070 | NEXT_Z | Runtime configuration: number of bands NZ of the next images (zero without the runtime configuration) |
| 0x074 | NEXT_LIMITS | Runtime configuration: band-independent error limit values of the next images (zero without the runtime configuration) |
| 0x078 | LIMITS | Band-independent error limit values: of the generics, with the runtime configuration of the last image that started (zero for a method not in use or with band-dependent limits) |
| 0x07C | NEXT_SAMPLES | Runtime parameters: user-defined data of the next images (zero without the runtime parameters) |
| 0x080 | NEXT_ORDER | Runtime parameters: sub-frame interleaving depth of the next images (zero without the runtime parameters and in BSQ order) |
| 0x084 | NEXT_WEIGHTS | Runtime parameters: weight update scaling exponent parameters of the next images (zero without the runtime parameters) |
| 0x088 | NEXT_ADAPTIVE | Runtime parameters: sample-adaptive or hybrid entropy coder parameters of the next images (zero without the runtime parameters and with the block-adaptive coder) |
| 0x08C | NEXT_BLOCK | Runtime parameters: block-adaptive entropy coder parameter of the next images (zero without the runtime parameters and with the other coders) |
Fields¶
ID¶
Address 0x000: Identification of the core and version of the register map.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | ID | RO | 0x4F435003 | Bits 31:8 the prefix of the core in ASCII (0x4F4350, OCP), as in the other Open Space HDL cores; bits 7:0 the version of the register map (3) |
GENERICS¶
Address 0x004: Implementation generics of the channel.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 19 | RUNTIME_PARAMS | RO | RuntimeParams_g | Runtime parameters: user-defined data, M, the weight update and the entropy coder parameters (NEXT_SAMPLES to NEXT_BLOCK) |
| 18 | RUNTIME_CONFIG | RO | RuntimeConfig_g | Runtime configuration of the image dimensions and error limit values (NEXT_X to NEXT_LIMITS, CONTROL, STATUS) |
| 17 | SPECULATION | RO | Speculation_g | Speculative weight loop of the predictor |
| 16:14 | SAMPLE_BYTES | RO | ceil(DynamicRange_g / 8) | Bytes per sample container in the SDUs |
| 13:10 | OUT_BYTES | RO | OutWidth_g / 8 | Bytes per word at the output of ocp_core |
| 9:5 | OUT_STREAM_BYTES | RO | OutStreamWidth_g / 8 | Bytes per beat of the compressed image stream |
| 4:0 | IN_STREAM_BYTES | RO | InStreamWidth_g / 8 | Bytes per beat of the SDU stream |
IMAGE_X¶
Address 0x008: Image width NX (CCSDS 5.3.2.2); with the runtime configuration the width of the last image that started.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 16:0 | SIZE | RO | XSize_g | Samples per row, 1 to 65536 |
IMAGE_Y¶
Address 0x00C: Image height NY; with the runtime configuration the height of the last image that started.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 16:0 | SIZE | RO | YSize_g | Rows, 1 to 65536 |
IMAGE_Z¶
Address 0x010: Number of bands NZ; with the runtime configuration the bands of the last image that started.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 16:0 | SIZE | RO | ZSize_g | Bands, 1 to 65536 |
SAMPLES¶
Address 0x014: Samples and user-defined data.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 15:8 | USER_DATA | RO | UserData_g | User-Defined Data field of the header; with the runtime parameters of the last image that started |
| 6 | SIGNED | RO | SignedSamples_g | Sample type: '1' signed (two's complement), '0' unsigned |
| 5:0 | DYNAMIC_RANGE | RO | DynamicRange_g | Dynamic range D in bits, 2 to 32 |
ORDER¶
Address 0x018: Sample encoding order (CCSDS 5.4.2).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 24:8 | SUB_FRAME_DEPTH | RO | SubFrameDepth_g | Sub-frame interleaving depth M, 1 to 65536 in BI order (with the runtime configuration min(SubFrameDepth_g, NZ) of the last image that started, with the runtime parameters its M); 0 in BSQ order |
| 0 | ENCODING | RO | EncodingOrder_g | Sample encoding order: '0' BI, '1' BSQ |
CODER¶
Address 0x01C: Compressed image.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 11:8 | SUP_TABLES | RO | SupTableCount_g | Number of supplementary information tables |
| 7:6 | FIDELITY | RO | Fidelity_g | Quantizer fidelity control: 0 lossless, 1 absolute, 2 relative, 3 absolute and relative error limits |
| 5:4 | ENTROPY_CODER | RO | EntropyCoder_g | Entropy coder: 0 sample-adaptive, 1 hybrid, 2 block-adaptive |
| 3:0 | OUTPUT_WORD_SIZE | RO | OutputWordSize_g | Output word size B in bytes, 1 to 8 |
PREDICTOR¶
Address 0x020: Predictor (CCSDS 5.3.3.2, 5.3.3.4, 5.3.3.5).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 23:20 | UPDATE_PERIOD_EXP | RO | UpdatePeriodExp_g | Error limit update period exponent u, 0 to 9; 0 without periodic updating |
| 19 | PERIODIC_UPDATE | RO | PeriodicUpdate_g | Periodic error limit updating (BI order, not lossless) |
| 18:16 | SAMPLE_REP_RESOLUTION | RO | SampleRepResolution_g | Sample representative resolution, 0 to 4 |
| 14:8 | REGISTER_SIZE | RO | RegisterSize_g | Register size R in bits, 32 to 64 |
| 6:5 | LOCAL_SUM | RO | LocalSum_g | Local sum type: 0 wide neighbor-oriented, 1 narrow neighbor-oriented, 2 wide column-oriented, 3 narrow column-oriented |
| 4 | REDUCED | RO | PredictionMode_g | '1' reduced, '0' full prediction mode |
| 3:0 | BANDS | RO | PredictionBands_g | Number of prediction bands P, 0 to 15 |
WEIGHTS¶
Address 0x024: Weights of the predictor (CCSDS 5.3.3.2); VMAX, VMIN and UPDATE_INTERVAL with the runtime parameters of the last image that started.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 30:26 | INIT_RESOLUTION | RO | WeightInitResolution_g | Weight initialisation resolution, 0 to 22; 0 with default weights |
| 25 | CUSTOM_INIT | RO | CustomWeights_g | Custom weight initialisation |
| 24 | EXP_OFFSETS | RO | WeightExpOffsetsUsed_g | Weight update scaling exponent offsets used |
| 21:17 | VMAX | RO | WeightUpdateVmax_g | Final weight update scaling exponent vmax, -6 to 9 (two's complement) |
| 16:12 | VMIN | RO | WeightUpdateVmin_g | Initial weight update scaling exponent vmin, -6 to 9 (two's complement) |
| 11:8 | UPDATE_INTERVAL | RO | WeightUpdateInterval_g | Weight update scaling exponent change interval exponent, 4 to 11 |
| 4:0 | RESOLUTION | RO | WeightResolution_g | Weight component resolution, 4 to 19 |
ADAPTIVE¶
Address 0x028: Sample-adaptive or hybrid entropy coder (CCSDS 5.3.4.2, 5.3.4.3); zero with the block-adaptive coder; with the runtime parameters the values of the last image that started (ACCU_INIT only with an accumulator initialisation constant).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 19:16 | ACCU_INIT | RO | AccuInit_g | Accumulator initialisation constant, 15 when band-dependent (sample-adaptive coder; 0 with the hybrid coder) |
| 15:12 | INITIAL_COUNT | RO | InitialCountExp_g | Initial count exponent, 1 to 8 |
| 11:8 | RESCALE_SIZE | RO | RescaleCounterSize_g | Rescaling counter size, 4 to 11 |
| 5:0 | UNARY_LIMIT | RO | UnaryLimit_g | Unary length limit, 8 to 32 |
BLOCK¶
Address 0x02C: Block-adaptive entropy coder (CCSDS 5.3.4.4); zero with the other coders; REF_INTERVAL with the runtime parameters of the last image that started.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 20:8 | REF_INTERVAL | RO | RefInterval_g | Reference sample interval, 1 to 4096 |
| 7 | RESTRICTED | RO | RestrictedCodes_g | Restricted code options |
| 6:0 | BLOCK_SIZE | RO | BlockSize_g | Block size J: 8, 16, 32 or 64 |
IMAGES_DONE¶
Address 0x040: Compressed images output without error.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | COUNT | RC | 0 | Images |
IMAGES_ABORTED¶
Address 0x044: Compressed images output with an error: aborted, ended by a faulty SDU, or with a missing end mark.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | COUNT | RC | 0 | Images |
SDU_ERRORS¶
Address 0x048: Faulty SDUs forwarded (flagged by the user signal or not a whole number of samples).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | COUNT | RC | 0 | SDUs |
SDUS_DISCARDED¶
Address 0x04C: SDUs discarded after a faulty SDU, up to the end of its image.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | COUNT | RC | 0 | SDUs |
ECC_CORRECTED¶
Address 0x050: Corrected single bit errors in the memories of the compressor (clock cycles with at least one).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | COUNT | RC | 0 | Errors |
ECC_UNCORRECTABLE¶
Address 0x054: Detected double bit errors in the memories of the compressor (clock cycles with at least one).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | COUNT | RC | 0 | Errors |
CONTROL¶
Address 0x060: Runtime configuration: commands (zero without the runtime configuration).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 0 | COMMIT | W1 | 0 | Checks NEXT_X to NEXT_LIMITS (with the runtime parameters also NEXT_SAMPLES to NEXT_BLOCK) and, when every value is in range, passes them to the core for the next image start |
STATUS¶
Address 0x064: Runtime configuration: state (zero without the runtime configuration).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 1 | CFG_ERROR | W1C | 0 | A COMMIT found a value out of range and passed nothing to the core |
| 0 | CFG_PENDING | RO | 0 | A committed configuration waits for the next image start of the core |
NEXT_X¶
Address 0x068: Runtime configuration: image width NX of the next images (zero without the runtime configuration).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 16:0 | SIZE | RW | XSize_g | Samples per row, 1 to XSize_g (2 to XSize_g with full prediction or neighbor-oriented local sums) |
NEXT_Y¶
Address 0x06C: Runtime configuration: image height NY of the next images (zero without the runtime configuration).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 16:0 | SIZE | RW | YSize_g | Rows, 1 to YSize_g |
NEXT_Z¶
Address 0x070: Runtime configuration: number of bands NZ of the next images (zero without the runtime configuration).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 16:0 | SIZE | RW | ZSize_g | Bands, 1 to ZSize_g |
NEXT_LIMITS¶
Address 0x074: Runtime configuration: band-independent error limit values of the next images (zero without the runtime configuration).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:16 | REL | RW | RelErrorLimits_g | Relative error limit value, 0 to 2^DR - 1 (first value of the generic; zero without relative error limits) |
| 15:0 | ABS | RW | AbsErrorLimits_g | Absolute error limit value, 0 to 2^DA - 1 (first value of the generic; zero without absolute error limits) |
LIMITS¶
Address 0x078: Band-independent error limit values: of the generics, with the runtime configuration of the last image that started (zero for a method not in use or with band-dependent limits).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:16 | REL | RO | RelErrorLimits_g | Relative error limit value |
| 15:0 | ABS | RO | AbsErrorLimits_g | Absolute error limit value |
NEXT_SAMPLES¶
Address 0x07C: Runtime parameters: user-defined data of the next images (zero without the runtime parameters).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 15:8 | USER_DATA | RW | UserData_g | User-Defined Data field of the header, 0 to 255 |
NEXT_ORDER¶
Address 0x080: Runtime parameters: sub-frame interleaving depth of the next images (zero without the runtime parameters and in BSQ order).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 24:8 | SUB_FRAME_DEPTH | RW | SubFrameDepth_g | Sub-frame interleaving depth M, 1 to min(SubFrameDepth_g, NZ of NEXT_Z) |
NEXT_WEIGHTS¶
Address 0x084: Runtime parameters: weight update scaling exponent parameters of the next images (zero without the runtime parameters).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 21:17 | VMAX | RW | WeightUpdateVmax_g | Final weight update scaling exponent vmax, VMIN to 9 (two's complement) |
| 16:12 | VMIN | RW | WeightUpdateVmin_g | Initial weight update scaling exponent vmin, -6 to 9 (two's complement) |
| 11:8 | UPDATE_INTERVAL | RW | WeightUpdateInterval_g | Weight update scaling exponent change interval exponent, 4 to 11 |
NEXT_ADAPTIVE¶
Address 0x088: Runtime parameters: sample-adaptive or hybrid entropy coder parameters of the next images (zero without the runtime parameters and with the block-adaptive coder).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 19:16 | ACCU_INIT | RW | AccuInit_g | Accumulator initialisation constant K, 0 to min(D - 2, 14) (sample-adaptive coder with a constant; zero otherwise) |
| 15:12 | INITIAL_COUNT | RW | InitialCountExp_g | Initial count exponent, 1 to min(8, RescaleCounterSize_g - 1); with the hybrid coder at least the smallest value for which every initial accumulator is below 2^(D + gamma0) |
| 11:8 | RESCALE_SIZE | RW | RescaleCounterSize_g | Rescaling counter size, max(4, INITIAL_COUNT + 1) to RescaleCounterSize_g |
| 5:0 | UNARY_LIMIT | RW | UnaryLimit_g | Unary length limit, 8 to 32 |
NEXT_BLOCK¶
Address 0x08C: Runtime parameters: block-adaptive entropy coder parameter of the next images (zero without the runtime parameters and with the other coders).
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 20:8 | REF_INTERVAL | RW | RefInterval_g | Reference sample interval, 1 to RefInterval_g |