Sha256: 06438c5b233e234d1825c8835dd34af581716c6646a1553a76340a0a98eee65e

Contents?: true

Size: 606 Bytes

Versions: 18

Compression:

Stored size: 606 Bytes

Contents

module Origen
  module Tester
    class BDM < CommandBasedTester
      def initialize
        super
        # The minimum time unit is 0.1s
        set_timeset('default', 100_000_000)
        @pat_extension = 'cmd'
        @comment_char = '//'
      end

      def delay(cycles)
        microcode "WAIT #{cycles_to_ts(cycles)}"
      end

      def write_byte(address, data)
        microcode "WB 0x#{address.to_s(16).upcase} 0x#{data.to_s(16).upcase}"
      end

      def write_word(address, data)
        microcode "WW 0x#{address.to_s(16).upcase} 0x#{data.to_s(16).upcase}"
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
origen-0.2.6 lib/origen/tester/bdm/bdm.rb
origen-0.2.5 lib/origen/tester/bdm/bdm.rb
origen-0.2.4 lib/origen/tester/bdm/bdm.rb
origen-0.2.3 lib/origen/tester/bdm/bdm.rb
origen-0.2.2 lib/origen/tester/bdm/bdm.rb
origen-0.2.1 lib/origen/tester/bdm/bdm.rb
origen-0.2.0 lib/origen/tester/bdm/bdm.rb
origen-0.1.3 lib/origen/tester/bdm/bdm.rb
origen-0.1.2 lib/origen/tester/bdm/bdm.rb
origen-0.1.1 lib/origen/tester/bdm/bdm.rb
origen-0.1.0 lib/origen/tester/bdm/bdm.rb
origen-0.0.9 lib/origen/tester/bdm/bdm.rb
origen-0.0.8 lib/origen/tester/bdm/bdm.rb
origen-0.0.6 lib/origen/tester/bdm/bdm.rb
origen-0.0.5 lib/origen/tester/bdm/bdm.rb
origen-0.0.4 lib/origen/tester/bdm/bdm.rb
origen-0.0.3 lib/origen/tester/bdm/bdm.rb
origen-0.0.2 lib/origen/tester/bdm/bdm.rb