CIRCT 23.0.0git
Loading...
Searching...
No Matches
ArcConstants.h
Go to the documentation of this file.
1//===- ArcConstants.h - Declare Arc dialect constants ------------*- C++-*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef CIRCT_DIALECT_ARC_ARCCONSTANTS_H
10#define CIRCT_DIALECT_ARC_ARCCONSTANTS_H
11
12namespace circt {
13namespace arc {
14
15// Offset for model state allocations. The first 16 bytes of model storage are
16// reserved for the model header. The first 8 bytes contain the current
17// simulation time. The next 8 bytes are reserved for the termination flag used
18// by `SimTerminateOp`. The actual model state starts at offset 16.
19inline constexpr unsigned kTimeOffset = 0;
20inline constexpr unsigned kTerminateFlagOffset = 8;
21inline constexpr unsigned kStateOffset = 16;
22
23} // namespace arc
24
25} // namespace circt
26
27#endif // CIRCT_DIALECT_ARC_ARCCONSTANTS_H
Definition arc.py:1
constexpr unsigned kStateOffset
constexpr unsigned kTerminateFlagOffset
constexpr unsigned kTimeOffset
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.