diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-29 22:05:00 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-29 22:07:41 +0200 |
commit | 273383692a50490f02a51d0c44ba63b9f557da4e (patch) | |
tree | 03d0ab817740eba3c4876b56be43b119e7e1d4be /kernel | |
parent | e6df25bf740b259027541db3543a769ecfc92d4f (diff) | |
download | yosys-273383692a50490f02a51d0c44ba63b9f557da4e.tar.gz yosys-273383692a50490f02a51d0c44ba63b9f557da4e.tar.bz2 yosys-273383692a50490f02a51d0c44ba63b9f557da4e.zip |
Added "test_cell" command
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/driver.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc index a55fbbed5..2e56f9a33 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -289,7 +289,7 @@ const char *create_prompt(RTLIL::Design *design, int recursion_counter) str += "yosys"; if (!design->selected_active_module.empty()) str += stringf(" [%s]", RTLIL::id2cstr(design->selected_active_module)); - if (!design->selection_stack.back().full_selection) { + if (!design->selection_stack.empty() && !design->selection_stack.back().full_selection) { if (design->selected_active_module.empty()) str += "*"; else if (design->selection_stack.back().selected_modules.size() != 1 || design->selection_stack.back().selected_members.size() != 0 || |