Class: Nor2c

Inherits:
ThreePorts show all
Defined in:
lib/Nor2c.rb

Overview

This class defines the 2-Input OR part

Instance Attribute Summary

Attributes inherited from Inst

#inputs, #name, #nodes, #outputs

Instance Method Summary collapse

Methods inherited from ThreePorts

#initialize

Methods inherited from Inst

#get_port, #initialize

Constructor Details

This class inherits a constructor from ThreePorts

Instance Method Details

#abeloutObject

This method returns the specific ABEL code to be output for this Inst object based on its connections on its input ports. These connections are defined in the abelout method of this object’s superclass, ThreePorts.



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

def abelout
  super
  "#{self.name}p2 = (#{@p0} # #{@p1});\n"
end