Sha256: 40dbf5615a083b5f6988ed78dc8f6962479b5e67fae5f88c609f6deb98e646c8

Contents?: true

Size: 470 Bytes

Versions: 100

Compression:

Stored size: 470 Bytes

Contents

require 'HDLRuby'

configure_high


require 'HDLRuby/std/counters'
include HDLRuby::High::Std


# A simple test of the after construct
system :with_after do
    input :clk,:rst
    output :timeout

    par(clk.posedge,rst.posedge) do
        timeout <= 0
        after(100,rst) { timeout <= 1 }
    end
end

# Instantiate it for checking.
with_after :with_afterI

# Generate the low level representation.
low = with_afterI.systemT.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/after.rb
HDLRuby-2.2.8 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.2.7 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.2.6 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.2.5 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.2.3 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.2.2 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.2.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.1.6 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.1.5 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.1.2 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.1.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.18 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.17 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.16 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.15 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.14 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.13 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.9 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.0.8 lib/HDLRuby/high_samples/after.rb