openFPGALoader/src/altera.hpp

30 lines
581 B
C++
Raw Normal View History

2021-06-26 15:24:07 +02:00
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2019 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
*/
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,
const std::string &file_type, bool verify, int8_t 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