Class: VerilogTools::HDLRubyState
- Inherits:
-
Object
- Object
- VerilogTools::HDLRubyState
- Defined in:
- lib/HDLRuby/verilog_hruby.rb
Overview
HDLRuby generation state.
Constant Summary collapse
- DEFAULT =
The default state.
HDLRubyState.new
Instance Attribute Summary collapse
-
#indent ⇒ Object
String to add at new line for indent.
-
#level ⇒ Object
The current level in HDLRuby generation.
-
#port_names ⇒ Object
The names of the ports of the current module.
Instance Method Summary collapse
-
#initialize ⇒ HDLRubyState
constructor
Create a new state.
Constructor Details
#initialize ⇒ HDLRubyState
Create a new state.
36 37 38 39 40 |
# File 'lib/HDLRuby/verilog_hruby.rb', line 36 def initialize @indent = "" # String to add at new line for indent. @level = :top # Current level in HDLRuby generation. @port_names = [] # The names of the ports of the current module. end |
Instance Attribute Details
#indent ⇒ Object
String to add at new line for indent.
24 25 26 |
# File 'lib/HDLRuby/verilog_hruby.rb', line 24 def indent @indent end |
#level ⇒ Object
The current level in HDLRuby generation.
27 28 29 |
# File 'lib/HDLRuby/verilog_hruby.rb', line 27 def level @level end |
#port_names ⇒ Object
The names of the ports of the current module.
30 31 32 |
# File 'lib/HDLRuby/verilog_hruby.rb', line 30 def port_names @port_names end |