Class: RTL::Mux
Instance Attribute Summary collapse
-
#arity ⇒ Object
Returns the value of attribute arity.
Attributes inherited from Circuit
#color, #components, #father, #iname, #name, #ports, #properties, #signals
Instance Method Summary collapse
- #add(port) ⇒ Object
-
#initialize ⇒ Mux
constructor
A new instance of Mux.
Methods inherited from Circuit
#component_named, #inputs, #make_lib, #new_instance, #outputs, #port, #port_named, #to_dot, #wires
Constructor Details
Instance Attribute Details
#arity ⇒ Object
Returns the value of attribute arity.
53 54 55 |
# File 'lib/rtl/library.rb', line 53 def arity @arity end |
Instance Method Details
#add(port) ⇒ Object
64 65 66 67 |
# File 'lib/rtl/library.rb', line 64 def add port @arity+=1 super port end |