Horizon
rule_diffpair.hpp
1 #pragma once
2 #include "common/common.hpp"
3 #include "rules/rule.hpp"
4 #include "rules/rule_match.hpp"
5 
6 namespace horizon {
7 class RuleDiffpair : public Rule {
8 public:
9  RuleDiffpair(const UUID &uu);
10  RuleDiffpair(const UUID &uu, const json &j, const RuleImportMap &import_map);
11  json serialize() const override;
12 
13  std::string get_brief(const class Block *block = nullptr) const override;
14  bool can_export() const override
15  {
16  return true;
17  }
18 
19  UUID net_class;
20  int layer = 10000;
21 
22  uint64_t track_width = .2_mm;
23  uint64_t track_gap = .2_mm;
24  uint64_t via_gap = .2_mm;
25 };
26 } // namespace horizon
A block is one level of hierarchy in the netlist.
Definition: block.hpp:26
Definition: rule_diffpair.hpp:7
Definition: rule.hpp:33
Definition: rule.hpp:53
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
a class to store JSON values
Definition: json.hpp:166
zip_uint64_t uint64_t
zip_uint64_t_t typedef.
Definition: zip.hpp:108