mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-11-22 09:23:24 +00:00
55 lines
1.8 KiB
C
55 lines
1.8 KiB
C
|
|
/*
|
||
|
|
* Copyright (C) 2023 ETH Zurich and University of Bologna
|
||
|
|
*
|
||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
|
* you may not use this file except in compliance with the License.
|
||
|
|
* You may obtain a copy of the License at
|
||
|
|
*
|
||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
*
|
||
|
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
|
* See the License for the specific language governing permissions and
|
||
|
|
* limitations under the License.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef _TCDM_SCRUBBER_REG_DEFS_
|
||
|
|
#define _TCDM_SCRUBBER_REG_DEFS_
|
||
|
|
|
||
|
|
#define REGISTER_OFFSET 0x20
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
// Register width
|
||
|
|
#define ECC_MANAGER_PARAM_REG_WIDTH 32
|
||
|
|
|
||
|
|
// Correctable mismatches caught by ecc on access
|
||
|
|
#define ECC_MANAGER_MISMATCH_COUNT_REG_OFFSET 0x0
|
||
|
|
|
||
|
|
// Interval between scrubs
|
||
|
|
#define ECC_MANAGER_SCRUB_INTERVAL_REG_OFFSET 0x4
|
||
|
|
|
||
|
|
// Correctable mismatches caught by ecc on scrub
|
||
|
|
#define ECC_MANAGER_SCRUB_FIX_COUNT_REG_OFFSET 0x8
|
||
|
|
|
||
|
|
// Uncorrectable mismatches caught by ecc on scrub
|
||
|
|
#define ECC_MANAGER_SCRUB_UNCORRECTABLE_COUNT_REG_OFFSET 0xc
|
||
|
|
|
||
|
|
// Testing: Inverted write mask for data bits
|
||
|
|
#define ECC_MANAGER_WRITE_MASK_DATA_N_REG_OFFSET 0x10
|
||
|
|
|
||
|
|
// Testing: Inverted write mask for ECC bits
|
||
|
|
#define ECC_MANAGER_WRITE_MASK_ECC_N_REG_OFFSET 0x14
|
||
|
|
#define ECC_MANAGER_WRITE_MASK_ECC_N_WRITE_MASK_ECC_N_MASK 0x7f
|
||
|
|
#define ECC_MANAGER_WRITE_MASK_ECC_N_WRITE_MASK_ECC_N_OFFSET 0
|
||
|
|
#define ECC_MANAGER_WRITE_MASK_ECC_N_WRITE_MASK_ECC_N_FIELD \
|
||
|
|
((bitfield_field32_t) { .mask = ECC_MANAGER_WRITE_MASK_ECC_N_WRITE_MASK_ECC_N_MASK, .index = ECC_MANAGER_WRITE_MASK_ECC_N_WRITE_MASK_ECC_N_OFFSET })
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
} // extern "C"
|
||
|
|
#endif
|
||
|
|
#endif // _TCDM_SCRUBBER_REG_DEFS_
|
||
|
|
// End generated register defines for ECC_manager
|