Class: HDLRuby::High::Delay

Inherits:
Low::Delay
  • Object
show all
Includes:
HStatement
Defined in:
lib/HDLRuby/hruby_high.rb

Overview

Describes a delay: 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 inherited from Low::Delay

#unit, #value

Attributes included from Low::Hparent

#parent

Instance Method Summary collapse

Methods included from HStatement

#hif

Methods inherited from Low::Delay

#clone, #eql?, #hash, #initialize, #replace_expressions!, #set_unit!, #set_value!, #to_c, #to_high, #to_verilog, #to_vhdl

Methods included from Low::Low2Symbol

#to_sym

Methods included from Low::Hparent

#scope

Constructor Details

This class inherits a constructor from HDLRuby::Low::Delay

Instance Method Details

#!Object



2223
2224
2225
# File 'lib/HDLRuby/hruby_high.rb', line 2223

def !
    High.top_user.wait(self)    
end

#to_lowObject

Converts the delay to HDLRuby::Low.



2228
2229
2230
# File 'lib/HDLRuby/hruby_high.rb', line 2228

def to_low
    return HDLRuby::Low::Delay.new(self.value, self.unit)
end