Sha256: bd41a786e8fe8117256c794316d603d3dc068a0d10161af7c415ac1473ee6744

Contents?: true

Size: 311 Bytes

Versions: 105

Compression:

Stored size: 311 Bytes

Contents

require 'HDLRuby'

configure_high


# A simple D-FF
system :dff do
    input :clk, :rst, :d
    output :q, :qb

    qb <= ~q

    par(clk.posedge) { q <= d & ~rst }
end

# Instantiate it for checking.
dff :dffI

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

# Displays it
puts low.to_yaml

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
HDLRuby-2.6.10 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.6.8 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.6.5 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.6.4 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.6.3 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.6.2 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.5.1 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.5.0 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.29 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.28 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.27 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.26 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.25 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.22 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.21 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.20 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.19 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.18 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.17 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.4.15 lib/HDLRuby/high_samples/dff.rb