Class: SOCMaker::HDLCoder

Inherits:
Object
  • Object
show all
Includes:
ERR
Defined in:
lib/soc_maker/hdl_coder.rb

Overview

Please see VHDLCoder and VerilogCoder

Direct Known Subclasses

VHDLCoder, VerilogCoder

Instance Method Summary collapse

Methods included from ERR

#consistence_error, #consistence_error_if, #init_error, #init_error_if, #processing_error, #processing_error_if

Constructor Details

#initializeHDLCoder

Only calls clear (see clear).



47
48
49
# File 'lib/soc_maker/hdl_coder.rb', line 47

def initialize
  clear
end

Instance Method Details

#clearObject

This method creates and clears three strings:

  • @decl_part: declarations

  • @asgn_part: assignments

  • @inst_part: instantiations



57
58
59
60
61
# File 'lib/soc_maker/hdl_coder.rb', line 57

def clear
  @decl_part  = "";   # declaration
  @asgn_part  = "";   # assignment
  @inst_part  = "";   # instantiation
end