3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-24 21:27:00 +00:00

Added log_cmd_error_expection

This commit is contained in:
Clifford Wolf 2014-07-27 12:04:12 +02:00
parent 7661ded8dd
commit d878fcbdc7
4 changed files with 7 additions and 8 deletions

View file

@ -32,10 +32,7 @@
* Convert a signal into a KISS-compatible textual representation.
*/
std::string kiss_convert_signal(const RTLIL::SigSpec &sig) {
if (!sig.is_fully_const()) {
throw 0;
}
log_assert(sig.is_fully_const());
return sig.as_const().as_string();
}