TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
gddr_cal.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Tenstorrent AI ULC
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#ifndef GDDR_CAL_H
7#define GDDR_CAL_H
8
9#include <stdint.h>
10
11#define GDDR_CAL_NUM_ASICS 8
12#define GDDR_CAL_NUM_CONTROLLERS 8
13
15#define GDDR_CA_VREFC_OFFSET_MAX 0xF
17#define GDDR_CA_TERMINATION_OFFSET_MAX 3
19#define GDDR_CA_OCD_PULLDOWN_OFFSET_MAX 7
21#define GDDR_CA_OCD_PULLDOWN_UNSET 0xFF
22
34
50
69
82int gddr_cal_write(const gddr_cal_table_t *table);
83
84#endif /* GDDR_CAL_H */
int gddr_cal_write(const gddr_cal_table_t *table)
Write the CA calibration table to flash.
Definition gddr_cal.c:250
int gddr_cal_read(gddr_cal_table_t *table)
Read and validate the CA calibration table from flash.
Definition gddr_cal.c:244
#define GDDR_CAL_NUM_ASICS
Definition gddr_cal.h:11
#define GDDR_CAL_NUM_CONTROLLERS
Definition gddr_cal.h:12
__UINT8_TYPE__ uint8_t
Per-controller CA calibration entry, latched from MRISC training results.
Definition gddr_cal.h:24
uint8_t ca_termination_offset
Definition gddr_cal.h:28
uint8_t ca_vrefc_offset
Definition gddr_cal.h:26
uint8_t valid
Definition gddr_cal.h:32
uint8_t ca_ocd_pulldown_offset
Definition gddr_cal.h:30
GDDR CA calibration table, stored in the gddrcal flash partitions.
Definition gddr_cal.h:47
gddr_cal_entry_t entries[8][8]
Definition gddr_cal.h:48