File: anlogicBitParser.hpp

package info (click to toggle)
openfpgaloader 0.13.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,320 kB
  • sloc: cpp: 23,693; python: 555; makefile: 64; tcl: 62; xml: 41
file content (31 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-License-Identifier: Apache-2.0
/*
 * Copyright (C) 2020 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
 */
#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);
		~AnlogicBitParser();
		int parse() override;

	private:
		int parseHeader();
		bool _reverseOrder;
};

#endif  // SRC_ANLOGICBITPARSER_HPP_