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-2.2.9 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.8 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.7 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.6 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.5 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.3 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.2 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.1.6 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.1.5 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.1.2 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.1.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.18 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.17 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.16 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.15 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.14 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.13 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.9 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.0.8 lib/HDLRuby/high_samples/inherit_dff.rb