Class: RubyRTL::Fsm

Inherits:
Ast
  • Object
show all
Defined in:
lib/ruby_rtl/ast.rb

Overview

FSM ===

Instance Attribute Summary collapse

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(name, body = nil) ⇒ Fsm

Returns a new instance of Fsm.



148
149
150
151
152
# File 'lib/ruby_rtl/ast.rb', line 148

def initialize name,body=nil
  @name,@body=name,body
  @default_assigns=[] # external to states structures
  @assignments=[] # to generate VHDL
end

Instance Attribute Details

#assignmentsObject

Returns the value of attribute assignments.



147
148
149
# File 'lib/ruby_rtl/ast.rb', line 147

def assignments
  @assignments
end

#bodyObject

Returns the value of attribute body.



144
145
146
# File 'lib/ruby_rtl/ast.rb', line 144

def body
  @body
end

#default_assignsObject

Returns the value of attribute default_assigns.



146
147
148
# File 'lib/ruby_rtl/ast.rb', line 146

def default_assigns
  @default_assigns
end

#nameObject

Returns the value of attribute name.



144
145
146
# File 'lib/ruby_rtl/ast.rb', line 144

def name
  @name
end

#statesObject

hash



145
146
147
# File 'lib/ruby_rtl/ast.rb', line 145

def states
  @states
end