Class: Vdd

Inherits:
OnePort show all
Defined in:
lib/Vdd.rb

Overview

This class defines the Vdd part

Instance Attribute Summary

Attributes inherited from Inst

#inputs, #name, #nodes, #outputs

Instance Method Summary collapse

Methods inherited from Inst

#abelout, #get_port

Constructor Details

#initialize(name) ⇒ Vdd

This method is called when a new object is instantiated, it takes the name of the Inst object (name) as its only argument. It is responsible for defining applicable input pins, then calling its superclass, OnePort, to complete other tasks.



5
6
7
8
9
# File 'lib/Vdd.rb', line 5

def initialize(name)
  super(name)
  # vdd is declared as a constant within the chip to save an input pin
  self.inputs = "#{self.name}p0 = 1;\n"
end