Skip to content

Commit

Permalink
Allow Host Watcher to allow writing to erisc pc registers on BH
Browse files Browse the repository at this point in the history
  • Loading branch information
abhullar-tt committed Dec 23, 2024
1 parent d767af2 commit 3c884a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tt_metal/impl/debug/sanitize_noc_host.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace tt {
#define DEBUG_VALID_WORKER_ADDR(a, l) (DEBUG_VALID_L1_ADDR(a, l) || (DEBUG_VALID_REG_ADDR(a) && (l) == 4))
#define DEBUG_VALID_DRAM_ADDR(a, l, b, e) (((a) >= b) && ((a) + (l) <= e))

#define DEBUG_VALID_ETH_ADDR(a, l) (((a) >= HAL_MEM_ETH_BASE) && ((a) + (l) <= HAL_MEM_ETH_BASE + HAL_MEM_ETH_SIZE))
#define DEBUG_VALID_ETH_ADDR(a, l) ((((a) >= HAL_MEM_ETH_BASE) && ((a) + (l) <= HAL_MEM_ETH_BASE + HAL_MEM_ETH_SIZE)) || (DEBUG_VALID_REG_ADDR(a) && (l) == 4))

static bool coord_found_p(std::vector<CoreCoord> coords, CoreCoord core) {
for (CoreCoord item : coords) {
Expand Down
3 changes: 2 additions & 1 deletion tt_metal/llrt/blackhole/bh_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ void Hal::initialize_bh() {
(addr < NOC_OVERLAY_START_ADDR + NOC_STREAM_REG_SPACE_SIZE * NOC_NUM_STREAMS)) ||
((addr >= NOC0_REGS_START_ADDR) && (addr < NOC0_REGS_START_ADDR + 0x1000)) ||
((addr >= NOC1_REGS_START_ADDR) && (addr < NOC1_REGS_START_ADDR + 0x1000)) ||
(addr == RISCV_DEBUG_REG_SOFT_RESET_0));
(addr == RISCV_DEBUG_REG_SOFT_RESET_0) ||
(addr== 0xFFB14000 || addr == 0xFFB14008)); // used to program start addr for eth FW
};

this->noc_xy_encoding_func_ = [](uint32_t x, uint32_t y) { return NOC_XY_ENCODING(x, y); };
Expand Down

0 comments on commit 3c884a5

Please sign in to comment.