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.4.8 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.4.6 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.4.1 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.8 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.7 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.6 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.5 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.4 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.3 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.2 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.1 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.3.0 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.17 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.16 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.15 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.14 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.13 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.12 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.11 lib/HDLRuby/high_samples/inherit_dff.rb
HDLRuby-2.2.10 lib/HDLRuby/high_samples/inherit_dff.rb