openFPGALoader/src/altera.hpp

24 lines
402 B
C++
Raw Normal View History

2019-09-26 18:29:20 +02:00
#ifndef ALTERA_HPP
#define ALTERA_HPP
#include <string>
2019-09-26 18:29:20 +02:00
#include "device.hpp"
#include "jtag.hpp"
#include "svf_jtag.hpp"
2019-09-26 18:29:20 +02:00
class Altera: public Device {
public:
Altera(Jtag *jtag, const std::string &filename, bool verbose);
2019-09-26 18:29:20 +02:00
~Altera();
void programMem();
void program(unsigned int offset = 0) override;
int idCode() override;
void reset() override;
2019-09-26 18:29:20 +02:00
private:
SVF_jtag _svf;
2019-09-26 18:29:20 +02:00
};
#endif