2022-02-17 20:22:12 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright 2022 Camille "DrasLorus" Monière.
|
|
|
|
*
|
|
|
|
* This file is part of CORDIC_Rotate_APFX.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU
|
|
|
|
* Lesser General Public License as published by the Free Software Foundation, either version 3 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
|
|
|
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License along with this program.
|
|
|
|
* If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2022-02-11 18:17:13 +01:00
|
|
|
|
2022-02-18 21:33:59 +01:00
|
|
|
#include "RomGeneratorConst/RomGeneratorConst.hpp"
|
2022-03-14 14:07:10 +01:00
|
|
|
#include "RomGeneratorML/RomGeneratorML.hpp"
|
2022-02-18 21:33:59 +01:00
|
|
|
|
|
|
|
#include <fstream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main(int, char **) {
|
|
|
|
|
2022-03-14 14:07:10 +01:00
|
|
|
const char filename[] = "cordic_rom_@ROM_TYPE@_@CORDIC_W@_@CORDIC_STAGES@_@CORDIC_Q@_@CORDIC_DIVIDER@.hpp";
|
2022-02-18 21:33:59 +01:00
|
|
|
|
2022-03-14 14:07:10 +01:00
|
|
|
generate_rom_header_@ROM_TYPE@<@CORDIC_W@, @CORDIC_STAGES@, @CORDIC_Q@, @CORDIC_DIVIDER@>(filename);
|
2022-02-18 21:33:59 +01:00
|
|
|
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|