openFPGALoader/src/bitparser.hpp

27 lines
512 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 BITPARSER_H
#define BITPARSER_H
#include <iostream>
#include <fstream>
#include <string>
2019-09-26 18:29:20 +02:00
#include "configBitstreamParser.hpp"
class BitParser: public ConfigBitstreamParser {
2019-09-26 18:29:20 +02:00
public:
BitParser(const std::string &filename, bool reverseOrder, bool verbose = false);
2019-09-26 18:29:20 +02:00
~BitParser();
2020-08-19 16:53:49 +02:00
int parse() override;
2019-09-26 18:29:20 +02:00
private:
int parseHeader();
bool _reverseOrder;
2019-09-26 18:29:20 +02:00
};
#endif