Class: RTL::Reg
Instance Attribute Summary
Attributes inherited from Circuit
#color, #components, #father, #iname, #name, #ports, #properties, #signals
Instance Method Summary collapse
-
#initialize ⇒ Reg
constructor
A new instance of Reg.
Methods inherited from Circuit
#add, #component_named, #inputs, #make_lib, #new_instance, #outputs, #port, #port_named, #to_dot, #wires
Constructor Details
#initialize ⇒ Reg
Returns a new instance of Reg.
43 44 45 46 47 48 49 |
# File 'lib/rtl/library.rb', line 43 def initialize name="Reg" super(name) add Port.new(:in ,"d") add Port.new(:out,"q") @color="darkorange" end |