Class: BlifUtils::Netlist::IO

Inherits:
Object
  • Object
show all
Defined in:
lib/blifutils/netlist.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, net) ⇒ IO

Returns a new instance of IO.



28
29
30
31
# File 'lib/blifutils/netlist.rb', line 28

def initialize (name, net)
	@name = name
	@net = net
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



25
26
27
# File 'lib/blifutils/netlist.rb', line 25

def name
  @name
end

#netObject

Returns the value of attribute net.



26
27
28
# File 'lib/blifutils/netlist.rb', line 26

def net
  @net
end

Instance Method Details

#to_sObject



33
34
35
# File 'lib/blifutils/netlist.rb', line 33

def to_s
	return "#{if @net.isInput then 'Input' elsif @net.isOutput then 'Output' else 'IO' end} #{@net.name} / #{@name}"
end