Skip to content

Commit 1f43de9

Browse files
committed
Make input events optional
1 parent e198ce8 commit 1f43de9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chipflow_lib/common/sim/models.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ void fetch_actions_into_queue() {
7575
void open_input_commands(const std::string &filename) {
7676
std::ifstream f(filename);
7777
if (!f) {
78-
throw std::runtime_error("failed to open input event stream!");
78+
std::cerr << "WARNING: failed to open input event stream. Add one for design validation - see [chipflow.test] configuration option." << std::endl;
79+
return;
7980
}
8081
json data = json::parse(f);
8182
input_cmds = data["commands"];

0 commit comments

Comments
 (0)