Sha256: 153f5e4336714939f958f70b082dea8a9b5709bdf3bcbbbdfc923532927561f8

Contents?: true

Size: 291 Bytes

Versions: 100

Compression:

Stored size: 291 Bytes

Contents

require 'HDLRuby'

configure_high


# A simple 16-bit adder
system :adder do
    [15..0].input :x,:y
    [16..0].output :s

    s <= x + y
end

# Instantiate it for checking.
adder :adderI

# Generate the low level representation.
low = adderI.systemT.to_low

# Displays it
puts low.to_yaml

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
HDLRuby-2.10.3 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.10.2 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.9.0 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.8.1 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.7.11 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.7.5 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.7.1 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.25 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.24 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.23 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.22 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.19 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.18 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.16 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.15 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.10 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.8 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.5 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.4 lib/HDLRuby/high_samples/adder.rb
HDLRuby-2.6.3 lib/HDLRuby/high_samples/adder.rb