class AxiTdl::EthernetStreamDefAtom

Public Class Methods

new(belong_to_module: nil, stream: nil, start: 0, length: 32) click to toggle source
# File lib/tdl/exlib/axis_eth_ex.rb, line 5
def initialize(belong_to_module: nil, stream: nil, start: 0, length: 32)
    @belong_to_module = belong_to_module
    @stream = stream
    @start = start
    @length = length
end

Public Instance Methods

-(str) click to toggle source
# File lib/tdl/exlib/axis_eth_ex.rb, line 12
def -(str)
    @stream.x_all_bits_slice(name: str.to_s ,start: @start, length: @length)
end