Sha256: ffeaf5cdac6e44f497c4f07432310c7fa824b5ec61fd6f27b05b018538ea057f
Contents?: true
Size: 427 Bytes
Versions: 9
Compression:
Stored size: 427 Bytes
Contents
require '../std/decoder.rb' include HDLRuby::High::Std # Implementation of a decoder. system :my_decoder do [7..0].input :a [7..0].output :z decoder(a) do entry("1000uuvv") { z <= u + v } entry("101uuuvv") { z <= u - v } entry("1100uuvv") { z <= u & v } entry("1101uuvv") { z <= u | v } entry("1110uuvv") { z <= u ^ v } default { z <= 0 } end end
Version data entries
9 entries across 9 versions & 1 rubygems