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:
parent
76371d177f
commit
7b29d177ac
5 changed files with 226 additions and 50 deletions
|
@ -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_; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue