3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 04:43:40 +00:00

add support for memories to c++ and smtlib functional backends

This commit is contained in:
Emily Schmidt 2024-06-12 11:27:10 +01:00
parent 76371d177f
commit 7b29d177ac
5 changed files with 226 additions and 50 deletions

View file

@ -1064,6 +1064,13 @@ public:
append(bit);
}
DriveSpec(SigSpec const &sig)
{
// TODO: converting one chunk at a time would be faster
for (auto const &bit : sig.bits())
append(bit);
}
std::vector<DriveChunk> const &chunks() const { pack(); return chunks_; }
std::vector<DriveBit> const &bits() const { unpack(); return bits_; }