Sha256: e9b254ed7c41e6f3e466283b9b96e019a901486f2ba87df3ec16cc26d60e59d8

Contents?: true

Size: 600 Bytes

Versions: 7

Compression:

Stored size: 600 Bytes

Contents

# A benchmark for testing range reference and index reference on expressions.
system :with_concat do
    [8].inner :val0,:val1
    inner :val2
    [4].inner :val3, :count
    inner :val4
    [4].inner :val5

    val2 <= (val0+val1)[4]
    val3 <= (val0+val1)[3..0]

    val4 <= val0[4]
    val5 <= val0[3..0]

    timed do
        val0 <= _b00001111
        val1 <= _b11000011
        count <= 0
        !10.ns
        val0 <= _b11110000
        val1 <= _b00111100
        count <= 1
        !10.ns
        val0 <= _b10101010
        val1 <= _b01010101
        count <= 2
        !10.ns
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
HDLRuby-3.4.0 lib/HDLRuby/hdr_samples/with_ref_expr.rb
HDLRuby-3.3.4 lib/HDLRuby/hdr_samples/with_ref_expr.rb
HDLRuby-3.3.3 lib/HDLRuby/hdr_samples/with_ref_expr.rb
HDLRuby-3.3.1 lib/HDLRuby/hdr_samples/with_ref_expr.rb
HDLRuby-3.3.0 lib/HDLRuby/hdr_samples/with_ref_expr.rb
HDLRuby-3.2.0 lib/HDLRuby/hdr_samples/with_ref_expr.rb
HDLRuby-3.1.0 lib/HDLRuby/hdr_samples/with_ref_expr.rb