class RTL::Mux
Attributes
arity[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
RTL::Circuit::new
# File lib/rtl/library.rb, line 54 def initialize name="Mux" super(name) @arity=0 add Port.new("i0",:in) add Port.new("i1",:in) add Port.new("sel",:in) add Port.new("f",:out) end
Public Instance Methods
add(port)
click to toggle source
Calls superclass method
RTL::Circuit#add
# File lib/rtl/library.rb, line 64 def add port @arity+=1 super port end