diff options
author | whitequark <whitequark@whitequark.org> | 2020-01-01 09:42:33 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-04-03 05:51:40 +0000 |
commit | e0def9e4d93bc99a65c3c918b53fee17fbe3a2ba (patch) | |
tree | c798babdc57d33c7425dde5383d06c4ca3019ecf /techlibs/ice40 | |
parent | 081d9318bcf1ee13549ddcb0983cba5f00b4272c (diff) | |
download | yosys-e0def9e4d93bc99a65c3c918b53fee17fbe3a2ba.tar.gz yosys-e0def9e4d93bc99a65c3c918b53fee17fbe3a2ba.tar.bz2 yosys-e0def9e4d93bc99a65c3c918b53fee17fbe3a2ba.zip |
memory_map: add -attr option, to respect inference attributes.
Before this commit, memory_map (which is always a part of a synth
script) would always pick up any $mem cell that was not processed
by a preceding pass and lower it down to $dff/$mux cells.
This is undesirable for two reasons:
* If there is an explicit inference attribute set on a $mem cell,
e.g. (* ram_block *), then it is arguably incorrect to map such
a memory to $dff/$mux cells.
* If memory_map tries to lower a memory that was intended to
be mapped to a large BRAM, it often takes extraordinarily long
time to finish, produces an extremely large log file, and outputs
an unusable design.
After this commit, properly invoked memory_map will not map any
memory that has an explicit inference attribute specified, solving
the first issue, and alleviating the second. The default behavior
is not changed.
Diffstat (limited to 'techlibs/ice40')
0 files changed, 0 insertions, 0 deletions