Sha256: e72fb74a0bb286a11dc9baa5ec75cad6e319ba1d60aab5bdc48959715b0b4486

Contents?: true

Size: 576 Bytes

Versions: 100

Compression:

Stored size: 576 Bytes

Contents

require 'HDLRuby'

configure_high


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

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

# A D-FF with inverted ouput inheriting from dff
system :dff_full,dff do
    output :qb

    qb <= ~q
end

# A D-FF with a secondary output
system :dff_fullest, dff_full do
    output :qq
    qq <= q
end

# Instantiate it for checking.
# dff_full :dff_fullI
dff_fullest :dff_fullestI

# Generate the low level representation.
# low = dff_fullI.systemT.to_low
low = dff_fullestI.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/inherit_dff.rb
HDLRuby-3.3.4 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-3.3.3 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-3.3.1 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-3.3.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-3.2.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-3.1.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-3.0.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.12 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.11 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.10 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.9 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.8 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.7 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.5 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.4 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.3 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.2 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.11.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.10.5 lib/HDLRuby/high_samples/inherit_dff.rb