diff options
author | Jim Lawson <ucbjrl@berkeley.edu> | 2019-03-04 13:23:58 -0800 |
---|---|---|
committer | Jim Lawson <ucbjrl@berkeley.edu> | 2019-03-04 13:37:23 -0800 |
commit | d6c4dfb9020ee19eebe3adadca89b65627184d81 (patch) | |
tree | 51df00d11d4fce0fe2931f65ae857d956e35969c /backends/firrtl/firrtl.cc | |
parent | 107d8848041289bdf3ed85f2ca6c7e02fa9ec774 (diff) | |
download | yosys-d6c4dfb9020ee19eebe3adadca89b65627184d81.tar.gz yosys-d6c4dfb9020ee19eebe3adadca89b65627184d81.tar.bz2 yosys-d6c4dfb9020ee19eebe3adadca89b65627184d81.zip |
Ensure fid() calls make_id() for consistency; tests/simple/dff_init.v fails
Mark dff_init.v as expected to fail since it uses "initial value".
Diffstat (limited to 'backends/firrtl/firrtl.cc')
-rw-r--r-- | backends/firrtl/firrtl.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/firrtl/firrtl.cc b/backends/firrtl/firrtl.cc index 88c1038b7..eef6401b2 100644 --- a/backends/firrtl/firrtl.cc +++ b/backends/firrtl/firrtl.cc @@ -165,8 +165,7 @@ struct FirrtlWorker std::string fid(RTLIL::IdString internal_id) { - const char *str = internal_id.c_str(); - return *str == '\\' ? str + 1 : str; + return make_id(internal_id); } std::string cellname(RTLIL::Cell *cell) |