Class: HDLRuby::LowDB::TypeVector

Inherits:
Base::TypeVector
  • Object
show all
Includes:
Ltype
Defined in:
lib/HDLRuby/hruby_db.rb

Overview

Describes a vector data type.

Instance Method Summary collapse

Methods included from Ltype

included, #ltype?

Constructor Details

#initialize(name, base, range) ⇒ TypeVector

Creates a new type vector named +name+ from a +base+ type and with +range+



137
138
139
140
141
142
# File 'lib/HDLRuby/hruby_db.rb', line 137

def initialize(name,base,range)
    # Ensure base si a HDLRuby::Low type.
    base = Type.get(base)
    # Create the type.
    super(name,base,range)
end