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-2.10.3 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.10.2 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.9.0 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.8.1 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.7.11 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.7.5 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.7.1 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.25 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.24 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.23 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.22 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.19 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.18 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.16 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.15 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.10 lib/HDLRuby/hdr_samples/with_to_array.rb
HDLRuby-2.6.8 lib/HDLRuby/hdr_samples/with_to_array.rb