mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
xilinx: Add support for LUT RAM on LUT4-based devices.
There are multiple other kinds of RAMs supported on these devices, but RAM16X1D is the only dual-port one. Fixes #1549
This commit is contained in:
parent
d48950d92d
commit
89adef352f
5 changed files with 42 additions and 27 deletions
|
@ -318,7 +318,6 @@ struct SynthXilinxPass : public ScriptPass
|
|||
if (lut_size != 6) {
|
||||
log_warning("Shift register inference not yet supported for family %s.\n", family.c_str());
|
||||
nosrl = true;
|
||||
nolutram = true;
|
||||
}
|
||||
|
||||
if (widemux != 0 && widemux < 2)
|
||||
|
@ -518,7 +517,7 @@ struct SynthXilinxPass : public ScriptPass
|
|||
|
||||
if (check_label("map_lutram", "(skip if '-nolutram')")) {
|
||||
if (!nolutram || help_mode) {
|
||||
run("memory_bram -rules +/xilinx/lutrams.txt");
|
||||
run("memory_bram -rules +/xilinx/lut" + lut_size_s + "_lutrams.txt");
|
||||
run("techmap -map +/xilinx/lutrams_map.v");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue