Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info getters #1685

Merged
merged 27 commits into from
Aug 24, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2155df2
Verilator flags
alaindargelas Jun 26, 2024
901ec8f
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jun 26, 2024
19798ca
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jun 27, 2024
f71d61f
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jun 28, 2024
cc65863
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 1, 2024
fae40bb
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 2, 2024
14f9868
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 2, 2024
b83c8b7
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 3, 2024
4447fb2
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 6, 2024
7f90154
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 8, 2024
956bce1
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 9, 2024
3604551
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 9, 2024
7107c4b
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 11, 2024
9b44b97
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 13, 2024
928ec07
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 13, 2024
f74d7a8
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 17, 2024
7939de1
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Jul 23, 2024
880bc6b
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Aug 16, 2024
3ee0afa
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Aug 20, 2024
b43ea13
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Aug 23, 2024
288e99f
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Aug 23, 2024
5cb7e5c
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Aug 23, 2024
9332bd6
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Aug 23, 2024
bacdb16
Getter Tcl functions
alaindargelas Aug 23, 2024
0afbf01
Merge branch 'main' of https://github.com/os-fpga/FOEDAG
alaindargelas Aug 24, 2024
0fe1cd3
Merge branch 'main' into info_getters
alaindargelas Aug 24, 2024
292358e
More getter functions
alaindargelas Aug 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/Compiler/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,33 @@ bool Compiler::RegisterCommands(TclInterpreter* interp, bool batchMode) {
interp->registerCmd("get_top_simulation_module", get_top_simulation_module,
this, nullptr);

auto get_design_files = [](void* clientData, Tcl_Interp* interp, int argc,
const char* argv[]) -> int {
Compiler* compiler = (Compiler*)clientData;

std::string fileList{};
for (const auto& lang_file : compiler->ProjManager()->DesignFiles()) {
fileList += lang_file.second + " ";
}
Tcl_AppendResult(interp, strdup(fileList.c_str()), nullptr);
return TCL_OK;
};
interp->registerCmd("get_design_files", get_design_files, this, nullptr);

auto get_simulation_files = [](void* clientData, Tcl_Interp* interp, int argc,
const char* argv[]) -> int {
Compiler* compiler = (Compiler*)clientData;

std::string fileList{};
for (const auto& lang_file : compiler->ProjManager()->SimulationFiles()) {
fileList += lang_file.second + " ";
}
Tcl_AppendResult(interp, strdup(fileList.c_str()), nullptr);
return TCL_OK;
};
interp->registerCmd("get_simulation_files", get_simulation_files, this,
nullptr);

auto create_design = [](void* clientData, Tcl_Interp* interp, int argc,
const char* argv[]) -> int {
Compiler* compiler = (Compiler*)clientData;
Expand Down
Loading