Class: RTL::Reg

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

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

#initializeReg

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