Sha256: bd41a786e8fe8117256c794316d603d3dc068a0d10161af7c415ac1473ee6744

Contents?: true

Size: 311 Bytes

Versions: 100

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

100 entries across 100 versions & 1 rubygems

Version Path
HDLRuby-3.4.0 lib/HDLRuby/high_samples/dff.rb
HDLRuby-3.3.4 lib/HDLRuby/high_samples/dff.rb
HDLRuby-3.3.3 lib/HDLRuby/high_samples/dff.rb
HDLRuby-3.3.1 lib/HDLRuby/high_samples/dff.rb
HDLRuby-3.3.0 lib/HDLRuby/high_samples/dff.rb
HDLRuby-3.2.0 lib/HDLRuby/high_samples/dff.rb
HDLRuby-3.1.0 lib/HDLRuby/high_samples/dff.rb
HDLRuby-3.0.0 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.12 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.11 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.10 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.9 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.8 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.7 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.5 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.4 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.3 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.2 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.11.0 lib/HDLRuby/high_samples/dff.rb
HDLRuby-2.10.5 lib/HDLRuby/high_samples/dff.rb