Sha256: 963c2e14479dc9f5477cf8abaf1b49c00a57057db4dabe19ba6c2254b21c36a1

Contents?: true

Size: 533 Bytes

Versions: 37

Compression:

Stored size: 533 Bytes

Contents

def connect8(i0,i1,i2,i3,i4,i5,i6,i7,
             o0,o1,o2,o3,o4,o5,o6,o7)
    o0 <= i0
    o1 <= i1
    o2 <= i2
    o3 <= i3
    o4 <= i4
    o5 <= i5
    o6 <= i6
    o7 <= i7
end

# A benchmark for testing the conversion to ruby array of expressions.
system :with_to_bench do
    [8].inner :val
    inner :b0,:b1,:b2,:b3,:b4,:b5,:b6,:b7

    connect8(*val,b0,b1,b2,b3,b4,b5,b6,b7)

    timed do
        val <= _01101010
        !10.ns
        val <= _01011010
        !10.ns
        val <= _00001111
        !10.ns
    end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
HDLRuby-3.4.0 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-3.3.4 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-3.3.3 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-3.3.1 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-3.3.0 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-3.2.0 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-3.1.0 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-3.0.0 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.12 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.11 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.10 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.9 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.8 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.7 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.5 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.4 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.3 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.2 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.11.0 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.10.5 lib/HDLRuby/hdr_samples/with_to_array.rb