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.6.2 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.5.1 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.5.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.29 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.28 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.27 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.26 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.25 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.22 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.21 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.20 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.19 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.18 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.17 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.15 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.14 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.12 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.11 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.10 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.4.9 lib/HDLRuby/high_samples/after.rb