Class: RTL::UnaryGate

Inherits:
Circuit show all
Defined in:
lib/rtl/library.rb

Direct Known Subclasses

Not

Instance Attribute Summary

Attributes inherited from Circuit

#color, #components, #father, #iname, #name, #ports, #properties, #signals

Instance Method Summary collapse

Methods inherited from Circuit

#add, #component_named, #inputs, #make_lib, #new_instance, #outputs, #port, #port_named, #to_dot, #wires

Constructor Details

#initializeUnaryGate

Returns a new instance of UnaryGate.



6
7
8
9
10
11
# File 'lib/rtl/library.rb', line 6

def initialize
  name=self.class.to_s.split("::").last
  super(name)
  add Port.new(:in,"i")
  add Port.new(:out,"f")
end