Class: Udb::XlenCondition
- Inherits:
-
Condition
- Object
- AbstractCondition
- Condition
- Udb::XlenCondition
- Extended by:
- T::Sig
- Defined in:
- lib/udb/condition.rb
Instance Method Summary collapse
- #initialize(xlen) constructor
- #to_h ⇒ Hash{String => T.untyped}, Boolean
- #to_idl(cfg_arch) ⇒ String
- #to_logic_tree_internal ⇒ LogicNode
Constructor Details
#initialize(xlen)
2041 2042 2043 2044 |
# File 'lib/udb/condition.rb', line 2041 def initialize(xlen) @xlen = xlen @satisfied_by_cfg_arch_memo = T.let({}, T::Hash[ConfiguredArchitecture, SatisfiedResult]) end |
Instance Method Details
#to_h ⇒ Hash{String => T.untyped}, Boolean
2058 |
# File 'lib/udb/condition.rb', line 2058 def to_h = { "xlen" => @xlen } |
#to_idl(cfg_arch) ⇒ String
2061 |
# File 'lib/udb/condition.rb', line 2061 def to_idl(cfg_arch) = "xlen() == #{@xlen}" |