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

For EDA 3310 #1718

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set(VERSION_MINOR 0)
# Add the spdlog directory to the include path
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/spdlog/include ${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk ${CMAKE_CURRENT_SOURCE_DIR}/third_party/scope_guard)

set(VERSION_PATCH 438)
set(VERSION_PATCH 439)


option(
Expand Down
14 changes: 13 additions & 1 deletion src/Compiler/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,20 @@
return TCL_ERROR;
}
std::string opts;
bool read_init_registers = false;

Check warning on line 943 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L943

Added line #L943 was not covered by tests
for (int i = 1; i < argc; i++) {
opts += std::string(argv[i]);
std::string opt = argv[i];
if (opt == "-read_init_registers") {
read_init_registers = true;

Check warning on line 947 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L947

Added line #L947 was not covered by tests
}
if (read_init_registers) {
if (opt != "2" && opt != "1" && opt != "0") {
compiler->ErrorMessage("read_init_registers must be 0, 1, or 2");
return TCL_ERROR;

Check warning on line 952 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L952

Added line #L952 was not covered by tests
}
read_init_registers = false;

Check warning on line 954 in src/Compiler/Compiler.cpp

View check run for this annotation

Codecov / codecov/patch

src/Compiler/Compiler.cpp#L954

Added line #L954 was not covered by tests
}
opts += opt;
if (i < (argc - 1)) {
opts += " ";
}
Expand Down
Loading