2021-06-26 15:24:07 +02:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2019-10-05 19:00:32 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2019 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef MCSPARSER_HPP
|
|
|
|
|
#define MCSPARSER_HPP
|
|
|
|
|
|
2021-02-24 06:36:48 +01:00
|
|
|
#include <string>
|
|
|
|
|
|
2019-10-05 19:00:32 +02:00
|
|
|
#include "configBitstreamParser.hpp"
|
|
|
|
|
|
|
|
|
|
class McsParser: public ConfigBitstreamParser {
|
|
|
|
|
public:
|
2020-08-19 16:53:49 +02:00
|
|
|
McsParser(const std::string &filename, bool reverseOrder, bool verbose);
|
|
|
|
|
int parse() override;
|
2019-10-05 19:00:32 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
int _base_addr;
|
2020-05-19 07:58:08 +02:00
|
|
|
bool _reverseOrder;
|
2019-10-05 19:00:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|