Class: Nand4c

Inherits:
FivePorts show all
Defined in:
lib/Nand4c.rb

Overview

This class defines the 4-Input AND part

Instance Attribute Summary

Attributes inherited from Inst

#inputs, #name, #nodes, #outputs

Instance Method Summary collapse

Methods inherited from FivePorts

#initialize

Methods inherited from Inst

#get_port, #initialize

Constructor Details

This class inherits a constructor from FivePorts

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



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

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