Module: Xilinx::Provision

Defined in:
lib/xilinx/provision.rb,
lib/xilinx/provision/udev.rb,
lib/xilinx/provision/impact.rb,
lib/xilinx/provision/cable_driver.rb,
lib/xilinx/provision/cable_firmware.rb

Overview

:nodoc namespace

Defined Under Namespace

Modules: CableDriver, CableFirmware, Impact, Udev

Class Method Summary collapse

Class Method Details

.fpga(bitfile, options = {}) ⇒ Object

Programs an FPGA chip on a JTAG chain.

The options argument accepts the following keys:

:cable_port:: set to :auto by default

Raises an exception if programming fails, returns true otherwise.



12
13
14
15
16
17
# File 'lib/xilinx/provision.rb', line 12

def self.fpga(bitfile, options = {})
  if output = Xilinx::Provision::Impact.program_fpga(bitfile, options)
    raise "Failed to program device!\nCommand output:\n#{output}"
  end
  true
end