TT-MLIR
experimental_dataflow_api_generated.h
Go to the documentation of this file.
1 // Auto-generated from /__w/tt-mlir/tt-mlir/include/ttmlir/Target/TTKernel/LLKs/experimental_dataflow_api.h - Do not edit directly
2 static constexpr char experimental_dataflow_api_generated[] = R"TTMLIR_STR_DELIM(
3 // SPDX-FileCopyrightText: (c) 2025 Tenstorrent AI ULC
4 //
5 // SPDX-License-Identifier: Apache-2.0
6 
7 #ifndef TTMLIR_TARGET_TTKERNEL_LLKS_EXPERIMENTAL_DATAFLOW_API_H
8 #define TTMLIR_TARGET_TTKERNEL_LLKS_EXPERIMENTAL_DATAFLOW_API_H
9 
10 namespace experimental {
11 
12 FORCE_INLINE
13 std::uint64_t
14 get_noc_multicast_addr(std::uint32_t noc_x_start, std::uint32_t noc_y_start,
15  std::uint32_t noc_x_end, std::uint32_t noc_y_end,
16  std::uint32_t addr, uint8_t noc = noc_index) {
17  /*
18  Get an encoding which contains tensix core and address you want to
19  read from/write to via the noc
20  */
21  if (noc) {
22  // noc 1
23  return NOC_MULTICAST_ADDR(
24  DYNAMIC_NOC_X(noc, noc_x_end), DYNAMIC_NOC_Y(noc, noc_y_end),
25  DYNAMIC_NOC_X(noc, noc_x_start), DYNAMIC_NOC_Y(noc, noc_y_start), addr);
26  } else {
27  // noc 0
28  return NOC_MULTICAST_ADDR(
29  DYNAMIC_NOC_X(noc, noc_x_start), DYNAMIC_NOC_Y(noc, noc_y_start),
30  DYNAMIC_NOC_X(noc, noc_x_end), DYNAMIC_NOC_Y(noc, noc_y_end), addr);
31  }
32 }
33 
34 } // namespace experimental
35 
36 #endif
37 )TTMLIR_STR_DELIM";
static constexpr unsigned int experimental_dataflow_api_generated_len
Definition: experimental_dataflow_api_generated.h:38
static constexpr char experimental_dataflow_api_generated[]
Definition: experimental_dataflow_api_generated.h:2