class RgGen::SystemVerilog::RTL::Feature
Private Instance Methods
create_if_instance(_, attributes, &block)
click to toggle source
# File lib/rggen/systemverilog/rtl/feature.rb, line 15 def create_if_instance(_, attributes, &block) InterfaceInstance.new(attributes, &block) end
create_if_port(_, attributes, &block)
click to toggle source
# File lib/rggen/systemverilog/rtl/feature.rb, line 27 def create_if_port(_, attributes, &block) InterfacePort.new(attributes, &block) end
create_parameter(parameter_type, attributes, &block)
click to toggle source
# File lib/rggen/systemverilog/rtl/feature.rb, line 31 def create_parameter(parameter_type, attributes, &block) DataObject.new( :parameter, attributes.merge(parameter_type: parameter_type), &block ) end
create_port(direction, attributes, &block)
click to toggle source
# File lib/rggen/systemverilog/rtl/feature.rb, line 19 def create_port(direction, attributes, &block) attributes = { data_type: 'logic' } .merge(attributes) .merge(direction: direction) DataObject.new(:argument, attributes, &block) end
create_variable(data_type, attributes, &block)
click to toggle source
# File lib/rggen/systemverilog/rtl/feature.rb, line 9 def create_variable(data_type, attributes, &block) DataObject.new( :variable, attributes.merge(data_type: data_type), &block ) end