altera: add support for RBF (only tested with SRAM)

This commit is contained in:
Gwenhael Goavec-Merou
2020-10-17 18:40:16 +02:00
parent 15e9907655
commit 2170a2af86
2 changed files with 101 additions and 8 deletions
+6 -4
View File
@@ -1,18 +1,20 @@
#ifndef ALTERA_HPP
#define ALTERA_HPP
#include "bitparser.hpp"
#include <string>
#include "device.hpp"
#include "jtag.hpp"
#include "svf_jtag.hpp"
class Altera: public Device {
public:
Altera(Jtag *jtag, std::string filename, bool verbose);
Altera(Jtag *jtag, const std::string &filename, bool verbose);
~Altera();
void program(unsigned int offset = 0);
int idCode();
void programMem();
void program(unsigned int offset = 0) override;
int idCode() override;
void reset() override;
private:
SVF_jtag _svf;