Sha256: 6ad34ec1d289b7ff5b28b6c6405c0da4baa6d7df03c2fa11a32e95e02e44d193
Contents?: true
Size: 817 Bytes
Versions: 2
Compression:
Stored size: 817 Bytes
Contents
Pattern.create do swd = $dut.swd reg = $dut.reg(:test) def test(msg) ss "Test - #{msg}" end test "Write to DR register" reg.write(0xFF01FF01) swd.write(0, reg, 0xFF01FF01) test "Write to DR register with overlay" reg.overlay("write_overlay") swd.write(0, reg, 0xFF01FF01) test "Write to DR register with single bit overlay" reg.overlay(nil) reg.bit(:bit).overlay("write_overlay") swd.write(0, reg, 0xFF01FF01) test "Read full DR register" cc "Full register (32 bits)" reg.read swd.read(0, reg) test "Read single bit out of DR register" reg.bit(:bit).read swd.read(0, reg) test "Store full DR register" cc "Full register (32 bits)" reg.store swd.read(0, reg) test "Store single bit out of DR register" reg.bit(:bit).store swd.read(0, reg) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
origen_swd-1.0.0 | pattern/example_reg.rb |
origen_swd-0.5.0 | pattern/example_reg.rb |