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-3.4.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-3.3.4 lib/HDLRuby/high_samples/after.rb
HDLRuby-3.3.3 lib/HDLRuby/high_samples/after.rb
HDLRuby-3.3.1 lib/HDLRuby/high_samples/after.rb
HDLRuby-3.3.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-3.2.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-3.1.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-3.0.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.12 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.11 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.10 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.9 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.8 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.7 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.5 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.4 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.3 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.2 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.11.0 lib/HDLRuby/high_samples/after.rb
HDLRuby-2.10.5 lib/HDLRuby/high_samples/after.rb