File tree Expand file tree Collapse file tree 8 files changed +29
-20
lines changed
Expand file tree Collapse file tree 8 files changed +29
-20
lines changed Original file line number Diff line number Diff line change 3636#include < memory>
3737#include < vector>
3838
39+ #include " Macros.hh"
3940#include " ScanArchitectConfig.hh"
4041#include " ScanCell.hh"
4142#include " ScanChain.hh"
4243#include " utl/Logger.h"
43- #include " Macros.hh"
4444
4545namespace dft {
4646
4747// Contains all the scan cells of the design and maintains them separated based
4848// on the hash domain.
4949class ScanCellsBucket
5050{
51- DISABLE_COPY_AND_MOVE (ScanCellsBucket);
51+ DISABLE_COPY_AND_MOVE (ScanCellsBucket);
52+
5253 public:
5354 explicit ScanCellsBucket (utl::Logger* logger);
5455
@@ -73,7 +74,8 @@ class ScanCellsBucket
7374// The Scan Architect. We can implement different algorithms to architect
7475class ScanArchitect
7576{
76- DISABLE_COPY_AND_MOVE (ScanArchitect);
77+ DISABLE_COPY_AND_MOVE (ScanArchitect);
78+
7779 public:
7880 // The limits of a hash domain.
7981 struct HashDomainLimits
Original file line number Diff line number Diff line change 3131// POSSIBILITY OF SUCH DAMAGE.
3232#pragma once
3333
34+ #include " Macros.hh"
3435#include " ScanArchitect.hh"
3536#include " utl/Logger.h"
36- #include " Macros.hh"
3737
3838namespace dft {
3939
@@ -42,7 +42,8 @@ namespace dft {
4242// the smallest and start adding the biggest cells to each scan chain.
4343class ScanArchitectHeuristic : public ScanArchitect
4444{
45- DISABLE_COPY_AND_MOVE (ScanArchitectHeuristic);
45+ DISABLE_COPY_AND_MOVE (ScanArchitectHeuristic);
46+
4647 public:
4748 ScanArchitectHeuristic (const ScanArchitectConfig& config,
4849 std::unique_ptr<ScanCellsBucket> scan_cells_bucket,
Original file line number Diff line number Diff line change 3434#include < memory>
3535#include < vector>
3636
37+ #include " Macros.hh"
3738#include " ScanCell.hh"
3839#include " utl/Logger.h"
39- #include " Macros.hh"
4040
4141namespace dft {
4242
@@ -51,7 +51,8 @@ namespace dft {
5151// - Find the scan enable of the chain
5252class ScanChain
5353{
54- DISABLE_COPY_AND_MOVE (ScanChain);
54+ DISABLE_COPY_AND_MOVE (ScanChain);
55+
5556 public:
5657 explicit ScanChain (const std::string& name);
5758
Original file line number Diff line number Diff line change 3131// POSSIBILITY OF SUCH DAMAGE.
3232#pragma once
3333
34+ #include " Macros.hh"
3435#include " ScanCell.hh"
3536#include " ScanPin.hh"
3637#include " db_sta/dbNetwork.hh"
3738#include " odb/db.h"
3839#include " sta/Liberty.hh"
39- #include " Macros.hh"
4040
4141namespace dft {
4242
4343// A simple single cell with just one bit. Usually one scan FF
4444class OneBitScanCell : public ScanCell
4545{
46- DISABLE_COPY_AND_MOVE (OneBitScanCell);
46+ DISABLE_COPY_AND_MOVE (OneBitScanCell);
47+
4748 public:
4849 OneBitScanCell (const std::string& name,
4950 std::unique_ptr<ClockDomain> clock_domain,
Original file line number Diff line number Diff line change 3535#include < memory>
3636#include < string>
3737
38+ #include " Macros.hh"
3839#include " ScanPin.hh"
3940#include " odb/db.h"
4041#include " utl/Logger.h"
41- #include " Macros.hh"
4242
4343namespace dft {
4444class ClockDomain ;
@@ -52,7 +52,8 @@ class ClockDomain;
5252// in the future black boxes or CTLs (Core Test Language)
5353class ScanCell
5454{
55- DISABLE_COPY_AND_MOVE (ScanCell);
55+ DISABLE_COPY_AND_MOVE (ScanCell);
56+
5657 public:
5758 ScanCell (const std::string& name,
5859 std::unique_ptr<ClockDomain> clock_domain,
Original file line number Diff line number Diff line change 3232#pragma once
3333
3434#include < string>
35+
3536#include " Macros.hh"
3637
3738namespace dft {
@@ -45,7 +46,8 @@ enum class ClockEdge
4546// The clock domain of the scan cells based on the clock name and the edge.
4647class ClockDomain
4748{
48- DISABLE_COPY_AND_MOVE (ClockDomain);
49+ DISABLE_COPY_AND_MOVE (ClockDomain);
50+
4951 public:
5052 ClockDomain (const std::string& clock_name, ClockEdge clock_edge);
5153
Original file line number Diff line number Diff line change 3535#include < type_traits>
3636#include < vector>
3737
38+ #include " Macros.hh"
3839#include " ScanChain.hh"
3940#include " ScanStitchConfig.hh"
4041#include " Utils.hh"
4142#include " odb/db.h"
42- #include " Macros.hh"
4343
4444namespace dft {
4545
@@ -51,7 +51,8 @@ inline constexpr bool always_false_v = false;
5151// are going to share the same scan_enable
5252class ScanStitch
5353{
54- DISABLE_COPY_AND_MOVE (ScanStitch);
54+ DISABLE_COPY_AND_MOVE (ScanStitch);
55+
5556 public:
5657 explicit ScanStitch (odb::dbDatabase* db,
5758 utl::Logger* logger,
Original file line number Diff line number Diff line change 3232#pragma once
3333
3434// Used inside a class of ClassName, will disable all copies and moves
35- #define DISABLE_COPY_AND_MOVE (ClassName ) \
36- private: \
37- ClassName (const ClassName&) = delete; \
38- ClassName& operator =(const ClassName&) = delete ; \
39- ClassName (ClassName&&) = delete; \
40- ClassName& operator =(ClassName&&) = delete ;
35+ #define DISABLE_COPY_AND_MOVE (ClassName ) \
36+ private: \
37+ ClassName (const ClassName&) = delete; \
38+ ClassName& operator =(const ClassName&) = delete ; \
39+ ClassName (ClassName&&) = delete; \
40+ ClassName& operator =(ClassName&&) = delete ;
You can’t perform that action at this time.
0 commit comments