3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-09 23:51:08 +00:00
yosys/techlibs
Emil J. Tywoniak f8c0b569db ql_bram_merge: declare the merged BRAM's ports before connecting them
$__QLF_TDP36K_MERGED exists only as a techmap template, so nothing in the
design describes its interface and Cell::port_dir() has nothing to answer
with. On a normalized design an unknown direction reads as "output", so every
input got a fresh driven wire and a $connect tying it back to its source --
and the constant bits of an address, having no source to tie back to, were
dropped and folded to x by the next `opt -undriven`. That silently turned
every TDP36K address, byte-enable and read-enable constant into x, and
qlf_k6n10f/t_mem1 failed its simulation assertion.

Declare each port on a generated blackbox first, the way memory_libmap
already does for the cells it instantiates.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MQU5XCqDYY8MbivGkNRrDo
2026-07-22 01:07:41 +02:00
..
achronix End of file fix 2026-06-23 07:23:41 +02:00
analogdevices Remove trailing whitespaces 2026-06-23 07:24:59 +02:00
anlogic WIP migration to twine 2026-07-20 12:27:18 +02:00
common mul2dsp: declare $__mul and $__soft_mul so their ports have directions 2026-07-21 17:45:02 +02:00
coolrunner2 coolrunner2: twines 2026-07-20 15:01:30 +02:00
easic Migrate build system to CMake 2026-06-03 08:58:10 +00:00
efinix WIP migration to twine 2026-07-20 12:27:18 +02:00
fabulous Remove old techmap. 2026-07-08 12:07:58 +02:00
gatemate WIP migration to twine 2026-07-20 12:27:18 +02:00
gowin gowin: replace positional arguments in cells_sim.v with named 2026-07-17 23:33:02 +02:00
greenpak4 WIP migration to twine 2026-07-20 12:27:18 +02:00
ice40 ice40_opt: retire the wrapper's ports before reinterpreting it as $lut 2026-07-21 16:52:31 +02:00
intel Revert "intel: register bram celltypes" 2026-07-17 23:38:01 +02:00
intel_alm Revert "intel: register bram celltypes" 2026-07-17 23:38:01 +02:00
lattice twines phase-3 build fix: post-fork main files broken by twine migration 2026-07-20 15:01:30 +02:00
microchip WIP migration to twine 2026-07-20 12:27:18 +02:00
nanoxplore techlibs: fix twines 2026-07-20 13:57:10 +02:00
quicklogic ql_bram_merge: declare the merged BRAM's ports before connecting them 2026-07-22 01:07:41 +02:00
sf2 Remove trailing whitespaces 2026-06-23 07:24:59 +02:00
xilinx WIP migration to twine 2026-07-20 12:27:18 +02:00
CMakeLists.txt Migrate build system to CMake 2026-06-03 08:58:10 +00:00
fix_mod.py Remove trailing whitespaces 2026-06-23 07:24:59 +02:00