Class: HDLRuby::High::Print

Inherits:
Low::Print show all
Includes:
HStatement
Defined in:
lib/HDLRuby/hruby_high.rb

Overview

Describes a print statement: not synthesizable!

Constant Summary collapse

High =
HDLRuby::High

Constants included from Low::Low2Symbol

Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable

Instance Attribute Summary

Attributes included from Low::Hparent

#parent

Instance Method Summary collapse

Methods included from HStatement

#hif

Methods inherited from Low::Print

#boolean_in_assign2select!, #casts_without_expression!, #clone, #delete_arg!, #each_arg, #each_block, #each_block_deep, #each_deep, #each_node, #each_node_deep, #each_statement_deep, #eql?, #explicit_types!, #extract_selects!, #hash, #map_args!, #replace_args!, #to_c, #to_high, #to_verilog, #to_vhdl

Methods inherited from Low::Statement

#add_blocks_code, #add_make_block, #behavior, #block, #blocks2seq!, #break_types!, #clone, #delete_related!, #delete_unless!, #each_deep, #each_statement, #eql?, #explicit_types!, #extract_declares!, #hash, #mix?, #par_in_seq2seq!, #parent_system, #replace_expressions!, #replace_names!, #scope, #to_c, #to_ch, #to_hdr, #to_high, #to_seq!, #to_upper_space!, #to_vhdl, #top_block, #top_scope, #use_name?, #with_boolean!

Methods included from Low::Low2Symbol

#to_sym

Methods included from Low::Hparent

#hierarchy, #scope

Constructor Details

#initialize(*args) ⇒ Print

Creates a new statement for printing +args+.



3359
3360
3361
3362
# File 'lib/HDLRuby/hruby_high.rb', line 3359

def initialize(*args)
    # Process the arguments.
    super(*args.map(&:to_expr))
end

Instance Method Details

#to_lowObject

Converts the connection to HDLRuby::Low.



3365
3366
3367
# File 'lib/HDLRuby/hruby_high.rb', line 3365

def to_low
    return HDLRuby::Low::Print.new(*self.each_arg.map(&:to_low))
end