Sha256: c02f6b456037ef500ad9c1bfd1b4fecd7a3e57fefc30cbe58a4f9555673e986e

Contents?: true

Size: 536 Bytes

Versions: 100

Compression:

Stored size: 536 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

    cur_system.open do
        puts "Inputs: ", cur_system.get_all_inputs
        puts "Outputs: ", cur_system.get_all_outputs
        puts "InOuts: ", cur_system.get_all_inouts
        puts "Signals: ", cur_system.get_all_signals
    end
end


# Instantiate it for checking.
adder :adderI
# 
# # Generate the low level representation.
# low = adderI.to_low
# 
# # Displays it
# puts low.to_yaml

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
HDLRuby-2.2.9 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.2.8 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.2.7 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.2.6 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.2.5 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.2.3 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.2.2 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.2.0 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.1.6 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.1.5 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.1.2 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.1.0 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.18 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.17 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.16 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.15 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.14 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.13 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.9 lib/HDLRuby/high_samples/all_signals.rb
HDLRuby-2.0.8 lib/HDLRuby/high_samples/all_signals.rb