diff options
author | Ahmed Irfan <ahmedirfan1983@gmail.com> | 2014-01-03 16:54:32 +0100 |
---|---|---|
committer | Ahmed Irfan <ahmedirfan1983@gmail.com> | 2014-01-03 16:54:32 +0100 |
commit | 09f16c9d0c1f0b8aec4a376449c831fa98a4e985 (patch) | |
tree | 05f4f6540424fc52405128dced69c02614efed77 /kernel/rtlil.cc | |
parent | 06482c046bcab4e2b9603f8954ce0f2fd501a73b (diff) | |
parent | 60fbca9970e1b92d61642b86d2a3170b5b33ad6f (diff) | |
download | yosys-09f16c9d0c1f0b8aec4a376449c831fa98a4e985.tar.gz yosys-09f16c9d0c1f0b8aec4a376449c831fa98a4e985.tar.bz2 yosys-09f16c9d0c1f0b8aec4a376449c831fa98a4e985.zip |
splitnet -driver feature
Merge branch 'master' of https://github.com/cliffordwolf/yosys into btor
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r-- | kernel/rtlil.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 1311f31cc..661525735 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1024,6 +1024,13 @@ void RTLIL::SigSpec::optimize() check(); } +RTLIL::SigSpec RTLIL::SigSpec::optimized() const +{ + RTLIL::SigSpec ret = *this; + ret.optimize(); + return ret; +} + bool RTLIL::SigChunk::compare(const RTLIL::SigChunk &a, const RTLIL::SigChunk &b) { if (a.wire != b.wire) { |