Sha256: 7924578c087e0719d58c37bfc176de1f75433e56a40ed3280e50c83f358a4d0e
Contents?: true
Size: 424 Bytes
Versions: 91
Compression:
Stored size: 424 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
91 entries across 91 versions & 1 rubygems