Class: RTL::UnaryGate
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Circuit
#color, #components, #father, #iname, #name, #ports, #properties, #signals
Instance Method Summary collapse
-
#initialize ⇒ UnaryGate
constructor
A new instance of UnaryGate.
Methods inherited from Circuit
#add, #component_named, #inputs, #make_lib, #new_instance, #outputs, #port, #port_named, #to_dot, #wires
Constructor Details
#initialize ⇒ UnaryGate
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 |