Sha256: 54d9f3d5328ea611cf3b2927d9eef24af16ff618b1984038b02557b5e048b485

Contents?: true

Size: 384 Bytes

Versions: 100

Compression:

Stored size: 384 Bytes

Contents

require 'HDLRuby'

configure_high

# Describes an 8-bit data 8-bit address ROM.
system :rom8_8 do
    [7..0].input :addr
    [7..0].inout :data

    bit[7..0][2**8].constant content: (2**8).times.to_a

    data <= content[addr]
end

# Instantiate it for checking.
rom8_8 :rom8_8I


# Generate the low level representation.
low = rom8_8I.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/rom.rb
HDLRuby-2.4.6 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.4.1 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.8 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.7 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.6 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.5 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.4 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.3 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.2 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.1 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.3.0 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.17 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.16 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.15 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.14 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.13 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.12 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.11 lib/HDLRuby/high_samples/rom.rb
HDLRuby-2.2.10 lib/HDLRuby/high_samples/rom.rb