Class: Nand2
- Inherits:
-
ThreePorts
- Object
- Inst
- ThreePorts
- Nand2
- Defined in:
- lib/Nand2.rb
Overview
This class defines the 2-Input NAND part
Instance Attribute Summary
Attributes inherited from Inst
#inputs, #name, #nodes, #outputs
Instance Method Summary collapse
-
#abelout ⇒ Object
This method returns the specific ABEL code to be output for this Inst object based on its connections on its input ports.
Methods inherited from ThreePorts
Methods inherited from Inst
Constructor Details
This class inherits a constructor from ThreePorts
Instance Method Details
#abelout ⇒ Object
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/Nand2.rb', line 5 def abelout super "#{self.name}p2 = !(#{@p0} & #{@p1});\n" end |