% render "layouts/basic.html" do %# HTML tags can be embedded in mark down files if you want to do specific custom %# formatting like this, but in most cases that is not required.
.gemspec
~~~ruby
spec.add_development_dependency "origen_swd", ">= <%= Origen.app.version %>"
~~~
__NOTE:__ You will also need to include require 'origen_swd'
somewhere in your environment. This can be done in config/environment.rb
for example.
### How To Use
Include the OrigenSWD
module to add a JTAG driver to your class and
define the required pins.
Including the module adds a swd
method which will return an instance of
[OrigenSWD::Driver
](<%= path "api/OrigenSWD/Driver.html" %>).
Here is an example integration:
~~~ruby
class DUT
include OrigenSWD
include Origen::Pins
def initialize(options = {})
add_pin :swd_clk
add_pin :swd_dio
end
end
DUT.new.swd # => An instance of OrigenSWD::Driver
~~~
### How To Setup a Development Environment
[Clone the repository from Github](https://github.com/Origen-SDK/origen_swd).
An instance of the OrigenSWD driver is hooked up to a dummy DUT
object for use in the console:
~~~
origen i
> $dut.swd
=> #