Class: AxiTdl::EthernetStreamDefAtom

Inherits:
Object
  • Object
show all
Defined in:
lib/tdl/exlib/axis_eth_ex.rb

Instance Method Summary collapse

Constructor Details

#initialize(belong_to_module: nil, stream: nil, start: 0, length: 32) ⇒ EthernetStreamDefAtom

Returns a new instance of EthernetStreamDefAtom.



5
6
7
8
9
10
# 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

Instance Method Details

#-(str) ⇒ Object



12
13
14
# 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