class RTL::Port

Attributes

circuit[RW]
dir[RW]
fanout[RW]
name[RW]
properties[RW]

Public Class Methods

new(dir,name) click to toggle source
# File lib/rtl/circuit.rb, line 97
def initialize dir,name
  @dir=dir
  @name=name
  @fanout=[]
  @properties={}
end

Public Instance Methods

connect(port) click to toggle source
# File lib/rtl/circuit.rb, line 104
def connect port
  puts "connecting #{self.name}-> #{port.name}" if $verbose
  @fanout << Wire.new(self,port)
end
type() click to toggle source
# File lib/rtl/circuit.rb, line 113
def type
  @properties[:type]
end
type=(t) click to toggle source
# File lib/rtl/circuit.rb, line 109
def type=(t)
  @properties[:type]=t
end