-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final changes made for the draft PR review
- Loading branch information
1 parent
0ac7791
commit c0a4f23
Showing
13 changed files
with
405 additions
and
251 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
src/DesignQuery/scripts/cpp_script_for_sdt_generation/main_sdtgen_cpp_nlohman_lib_v5
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
/** | ||
* @file main_sdtgen_cpp_nlohman_lib_v5.cpp | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
* @date 2023-08-30 | ||
* @copyright Copyright 2021 The Foedag team | ||
//********************************************************************************************************************************** | ||
// JSON to SDT cpp script written by ZaidTahir, for questions please email: | ||
// [email protected] or [email protected] ************** | ||
// ********************************************************************************************************************************* | ||
* GPL License | ||
* Copyright (c) 2021 The Open-Source FPGA Foundation | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU 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 General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <cstdio> | ||
|
||
|
@@ -111,9 +131,26 @@ int main(int, char*[]) { | |
|
||
outfile << "/*\n \ | ||
*\n \ | ||
*Copyright (c) 2023 Rapid Silicon\n \ | ||
*SPDX-License-Identifier: rs-eula\n \ | ||
*JSON to SDT cpp script written by ZaidTahir, for questions please email: [email protected] or [email protected]\n*/\n\n"; | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt)\n \ | ||
* @date 2023-08-30\n \ | ||
* @copyright Copyright 2021 The Foedag team\n \ | ||
\n \ | ||
* GPL License\n \ | ||
\n \ | ||
* Copyright (c) 2021 The Open-Source FPGA Foundation\n \ | ||
\n \ | ||
* This program is free software: you can redistribute it and/or modify\n \ | ||
* it under the terms of the GNU General Public License as published by\n \ | ||
* the Free Software Foundation, either version 3 of the License, or\n \ | ||
* (at your option) any later version.\n \ | ||
\n \ | ||
* This program is distributed in the hope that it will be useful,\n \ | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of\n \ | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n \ | ||
* GNU General Public License for more details.\n \ | ||
\n \ | ||
* You should have received a copy of the GNU General Public License\n \ | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. \n*/\n\n"; | ||
|
||
outfile << "/dts-v1/;\n\n" | ||
<< "/ {\n"; | ||
|
23 changes: 20 additions & 3 deletions
23
src/DesignQuery/scripts/cpp_script_for_sdt_generation/output_sdtgen_cpp_nlohman_lib_v5.sdt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
/* | ||
* | ||
*Copyright (c) 2023 Rapid Silicon | ||
*SPDX-License-Identifier: rs-eula | ||
*JSON to SDT cpp script written by ZaidTahir, for questions please email: [email protected] or [email protected] | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
* @date 2023-08-30 | ||
* @copyright Copyright 2021 The Foedag team | ||
|
||
* GPL License | ||
|
||
* Copyright (c) 2021 The Open-Source FPGA Foundation | ||
|
||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU 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 General Public License for more details. | ||
|
||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/dts-v1/; | ||
|
29 changes: 25 additions & 4 deletions
29
src/DesignQuery/scripts/cpp_script_for_sdt_generation/sdtgen_cpp_nlohman_lib_v5.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
/** | ||
* @file sdtgen_cpp_nlohman_lib_v5.cpp | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
* @date 2023-08-30 | ||
* @copyright Copyright 2021 The Foedag team | ||
* GPL License | ||
* Copyright (c) 2021 The Open-Source FPGA Foundation | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU 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 General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
//********************************************************************************************************************************** | ||
// JSON to SDT cpp script written by ZaidTahir, for questions please email: | ||
// [email protected] or [email protected] ************** | ||
// ********************************************************************************************************************************* | ||
#include "sdtgen_cpp_nlohman_lib_v5.h" | ||
|
||
#include <cstdio> | ||
|
30 changes: 25 additions & 5 deletions
30
src/DesignQuery/scripts/cpp_script_for_sdt_generation/sdtgen_cpp_nlohman_lib_v5.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
|
||
//********************************************************************************************************************************** | ||
// JSON to SDT cpp script written by ZaidTahir, for questions please email: | ||
// [email protected] or [email protected] ************** | ||
// ********************************************************************************************************************************* | ||
/** | ||
* @file sdtgen_cpp_nlohman_lib_v5.h | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
* @date 2023-08-30 | ||
* @copyright Copyright 2021 The Foedag team | ||
* GPL License | ||
* Copyright (c) 2021 The Open-Source FPGA Foundation | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU 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 General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef MY_CLASS_H // include guard | ||
#define MY_CLASS_H | ||
|
26 changes: 22 additions & 4 deletions
26
src/DesignQuery/scripts/tcl_script_for_sdt_generation/output.sdt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
/* | ||
*Copyright (c) 2023 Rapid Silicon | ||
*SPDX-License-Identifier: rs-eula | ||
*JSON to SDT TCL script written by ZaidTahir, for questions please email: [email protected] or [email protected] | ||
*/ | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
* @date 2023-08-30 | ||
* @copyright Copyright 2021 The Foedag team | ||
|
||
* GPL License | ||
|
||
* Copyright (c) 2021 The Open-Source FPGA Foundation | ||
|
||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU 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 General Public License for more details. | ||
|
||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
*/ | ||
|
||
|
||
/dts-v1/; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
# /** | ||
|
||
# * @file main_sdtgen_cpp_nlohman_lib_v5.cpp | ||
# * @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
# * @date 2023-08-30 | ||
# * @copyright Copyright 2021 The Foedag team | ||
|
||
# * GPL License | ||
|
||
# * Copyright (c) 2021 The Open-Source FPGA Foundation | ||
|
||
# * This program is free software: you can redistribute it and/or modify | ||
# * it under the terms of the GNU 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 General Public License for more details. | ||
|
||
# * You should have received a copy of the GNU General Public License | ||
# * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# */ | ||
|
||
#!/usr/bin/tclsh | ||
package require json | ||
package require Tcl 8.5 | ||
|
@@ -9,10 +35,6 @@ if {$::tcl_version < 8.5} { | |
package require dict | ||
} | ||
|
||
########################################################################################################################################## | ||
########## JSON to SDT TCL script written by ZaidTahir, for questions please email: [email protected] or [email protected] ############ | ||
########################################################################################################################################## | ||
|
||
# Use this command to run this script: | ||
# "tclsh sdtgen_v6.tcl -o output_v6.sdt -f" | ||
# All functionality moved to procs in tcl script version5 | ||
|
@@ -416,10 +438,27 @@ proc get_board_info {} { | |
|
||
proc gen_copyright_header {} { | ||
set copyrightString "/*\n \ | ||
*Copyright (c) 2023 Rapid Silicon\n \ | ||
*SPDX-License-Identifier: rs-eula\n \ | ||
*JSON to SDT TCL script written by ZaidTahir, for questions please email: [email protected] or [email protected]\n \ | ||
*/\n\n" | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt)\n \ | ||
* @date 2023-08-30\n \ | ||
* @copyright Copyright 2021 The Foedag team\n \ | ||
\n \ | ||
* GPL License\n \ | ||
\n \ | ||
* Copyright (c) 2021 The Open-Source FPGA Foundation\n \ | ||
\n \ | ||
* This program is free software: you can redistribute it and/or modify\n \ | ||
* it under the terms of the GNU General Public License as published by\n \ | ||
* the Free Software Foundation, either version 3 of the License, or\n \ | ||
* (at your option) any later version.\n \ | ||
\n \ | ||
* This program is distributed in the hope that it will be useful,\n \ | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of\n \ | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n \ | ||
* GNU General Public License for more details.\n \ | ||
\n \ | ||
* You should have received a copy of the GNU General Public License\n \ | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. \n\ | ||
\n*/\n\n" | ||
|
||
return $copyrightString | ||
} | ||
|
35 changes: 26 additions & 9 deletions
35
...DesignQuery/sdtgen_cpp_nlohman_lib_v6.cpp → src/DesignQuery/sdtgen.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
/** | ||
* @file sdtgen.cpp | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
* @date 2023-08-30 | ||
* @copyright Copyright 2021 The Foedag team | ||
//********************************************************************************************************************************** | ||
// JSON to SDT cpp script written by ZaidTahir, for questions please email: | ||
// [email protected] or [email protected] ************** | ||
// ********************************************************************************************************************************* | ||
* GPL License | ||
* Copyright (c) 2021 The Open-Source FPGA Foundation | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU 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 General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <cstdio> | ||
// #include <nlohmann_json/json.hpp> | ||
|
||
#include "nlohmann_json/json.hpp" | ||
// #include "json.hpp" | ||
// #include "json/single_include/nlohmann/json.hpp" | ||
// #include <json/single_include/nlohmann/json_fwd.hpp> | ||
|
||
#include "sdtgen_cpp_nlohman_lib_v6.h" | ||
#include "sdtgen.h" | ||
|
||
using namespace std; | ||
|
||
|
35 changes: 25 additions & 10 deletions
35
src/DesignQuery/sdtgen_cpp_nlohman_lib_v6.h → src/DesignQuery/sdtgen.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
/** | ||
* @file sdtgen.h | ||
* @author Zaid Tahir ([email protected] or [email protected] or https://github.com/zaidtahirbutt) | ||
* @date 2023-08-30 | ||
* @copyright Copyright 2021 The Foedag team | ||
//********************************************************************************************************************************** | ||
// JSON to SDT cpp script written by ZaidTahir, for questions please email: | ||
// [email protected] or [email protected] ************** | ||
// ********************************************************************************************************************************* | ||
* GPL License | ||
* Copyright (c) 2021 The Open-Source FPGA Foundation | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU 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 General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef MY_CLASS_H // include guard | ||
#define MY_CLASS_H | ||
|
||
#include <cstdio> | ||
// #include <nlohmann_json/json.hpp> | ||
#include "nlohmann_json/json.hpp" | ||
// #include "json.hpp" | ||
// #include "json/single_include/nlohmann/json.hpp" | ||
// #include <json/single_include/nlohmann/json_fwd.hpp> | ||
|
||
// using json = nlohmann::json; | ||
#include "nlohmann_json/json.hpp" | ||
|
||
using namespace std; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gtkwave
updated
80 files