Files
openFPGALoader/src/anlogicBitParser.hpp
T

32 lines
716 B
C++
Raw Normal View History

2021-06-26 15:24:07 +02:00
// SPDX-License-Identifier: Apache-2.0
2020-08-21 14:01:07 +02:00
/*
* Copyright (C) 2020 Gwenhael Goavec-Merou <[email protected]>
*/
#ifndef SRC_ANLOGICBITPARSER_HPP_
#define SRC_ANLOGICBITPARSER_HPP_
#include <iostream>
#include <fstream>
#include <map>
#include <string>
#include "configBitstreamParser.hpp"
/*
* Minimal implementation for anlogic bitstream
* only parse header part and store data in a buffer
*/
class AnlogicBitParser: public ConfigBitstreamParser {
public:
AnlogicBitParser(const std::string &filename, bool reverseOrder,
bool verbose = false);
2020-08-21 14:01:07 +02:00
~AnlogicBitParser();
int parse() override;
private:
int parseHeader();
bool _reverseOrder;
2020-08-21 14:01:07 +02:00
};
#endif // SRC_ANLOGICBITPARSER_HPP_