Class: Nand3

Inherits:
FourPorts show all
Defined in:
lib/Nand3.rb

Overview

This class defines the 3-Input NAND part

Instance Attribute Summary

Attributes inherited from Inst

#inputs, #name, #nodes, #outputs

Instance Method Summary collapse

Methods inherited from FourPorts

#initialize

Methods inherited from Inst

#get_port, #initialize

Constructor Details

This class inherits a constructor from FourPorts

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, FourPorts.



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

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