Sha256: ef3b9af74d9ae59b488b904f6a7c10d80e99f167290edf1b9882e53ab2b6cbdf

Contents?: true

Size: 741 Bytes

Versions: 37

Compression:

Stored size: 741 Bytes

Contents

# Test the type method min and max

# A benchmark for the adder.
system :adder_bench do
    [32].inner :x
    signed[32].inner :y

    timed do
        x <= 0
        y <= 0
        !10.ns
        x <= bit[8].max
        y <= signed[8].max
        !10.ns
        x <= bit[8].min
        y <= signed[8].min
        !10.ns
        x <= bit[10].max
        y <= signed[10].max
        !10.ns
        x <= bit[10].min
        y <= signed[10].min
        !10.ns
        x <= bit[16].max
        y <= signed[16].max
        !10.ns
        x <= bit[16].min
        y <= signed[16].min
        !10.ns
        x <= bit[32].max
        y <= signed[32].max
        !10.ns
        x <= bit[32].min
        y <= signed[32].min
        !10.ns
    end
end

Version data entries

37 entries across 37 versions & 1 rubygems

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