sv_parser_syntaxtree/declarations/
strengths.rs1use crate::*;
2
3#[derive(Clone, Debug, PartialEq, Node)]
6pub enum DriveStrength {
7 Strength01(Box<DriveStrength01>),
8 Strength10(Box<DriveStrength10>),
9 Strength0z(Box<DriveStrength0z>),
10 Strength1z(Box<DriveStrength1z>),
11 Strengthz0(Box<DriveStrengthz0>),
12 Strengthz1(Box<DriveStrengthz1>),
13}
14
15#[derive(Clone, Debug, PartialEq, Node)]
16pub struct DriveStrength01 {
17 pub nodes: (Paren<(Strength0, Symbol, Strength1)>,),
18}
19
20#[derive(Clone, Debug, PartialEq, Node)]
21pub struct DriveStrength10 {
22 pub nodes: (Paren<(Strength1, Symbol, Strength0)>,),
23}
24
25#[derive(Clone, Debug, PartialEq, Node)]
26pub struct DriveStrength0z {
27 pub nodes: (Paren<(Strength0, Symbol, Keyword)>,),
28}
29
30#[derive(Clone, Debug, PartialEq, Node)]
31pub struct DriveStrength1z {
32 pub nodes: (Paren<(Strength1, Symbol, Keyword)>,),
33}
34
35#[derive(Clone, Debug, PartialEq, Node)]
36pub struct DriveStrengthz1 {
37 pub nodes: (Paren<(Keyword, Symbol, Strength1)>,),
38}
39
40#[derive(Clone, Debug, PartialEq, Node)]
41pub struct DriveStrengthz0 {
42 pub nodes: (Paren<(Keyword, Symbol, Strength0)>,),
43}
44
45#[derive(Clone, Debug, PartialEq, Node)]
46pub enum Strength0 {
47 Supply0(Box<Keyword>),
48 Strong0(Box<Keyword>),
49 Pull0(Box<Keyword>),
50 Weak0(Box<Keyword>),
51}
52
53#[derive(Clone, Debug, PartialEq, Node)]
54pub enum Strength1 {
55 Supply1(Box<Keyword>),
56 Strong1(Box<Keyword>),
57 Pull1(Box<Keyword>),
58 Weak1(Box<Keyword>),
59}
60
61#[derive(Clone, Debug, PartialEq, Node)]
62pub enum ChargeStrength {
63 Small(Box<ChargeStrengthSmall>),
64 Medium(Box<ChargeStrengthMedium>),
65 Large(Box<ChargeStrengthLarge>),
66}
67
68#[derive(Clone, Debug, PartialEq, Node)]
69pub struct ChargeStrengthSmall {
70 pub nodes: (Paren<Keyword>,),
71}
72
73#[derive(Clone, Debug, PartialEq, Node)]
74pub struct ChargeStrengthMedium {
75 pub nodes: (Paren<Keyword>,),
76}
77
78#[derive(Clone, Debug, PartialEq, Node)]
79pub struct ChargeStrengthLarge {
80 pub nodes: (Paren<Keyword>,),
81}