OpenSTA/include/sta/ObjectId.hh

28 lines
731 B
C++
Raw Normal View History

2019-11-11 16:28:42 +01:00
// Parallax Static Timing Analyzer
// Copyright (c) 2019, Parallax Software, Inc.
// All rights reserved.
//
// No part of this document may be copied, transmitted or
// disclosed in any form or fashion without the express
// written consent of Parallax Software, Inc.
2020-02-16 01:13:16 +01:00
#pragma once
2019-11-11 16:28:42 +01:00
#include <cstdint>
namespace sta {
// ObjectId is block index and object index within the block.
typedef uint32_t ObjectId;
// Block index.
typedef uint32_t BlockIdx;
// Object index within a block.
typedef uint32_t ObjectIdx;
2020-09-07 18:04:17 +02:00
static constexpr int object_id_bits = sizeof(ObjectId) * 8;
2019-11-11 16:28:42 +01:00
static constexpr BlockIdx block_idx_null = 0;
static constexpr ObjectId object_id_null = 0;
static constexpr ObjectIdx object_idx_null = 0;
} // Namespace