3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-24 08:24:35 +00:00

analogdevices: Add BRAM options

Enable `-force-params`, and tidy up lutram mapping too.
This commit is contained in:
Krystine Sherwin 2025-10-18 12:59:55 +13:00
parent 72208095dd
commit 4f49a7fe18
No known key found for this signature in database
5 changed files with 528 additions and 247 deletions

View file

@ -1,39 +1,20 @@
# Single-port RAMs.
ram distributed $__ANALOGDEVICES_LUTRAM_SP_ {
option "ABITS" 5 {
cost 1;
abits 5;
}
option "ABITS" 6 {
cost 2;
abits 6;
}
width 1;
init no_undef;
prune_rom;
port arsw "RW" {
clock anyedge;
}
}
# Dual-port RAMs.
ram distributed $__ANALOGDEVICES_LUTRAM_DP_ {
option "ABITS" 5 {
cost 2;
abits 5;
}
option "ABITS" 6 {
cost 4;
abits 6;
}
ram distributed $__ANALOGDEVICES_LUTRAM_ {
option "SIZE" 32 abits 5;
option "SIZE" 64 abits 6;
width 1;
init no_undef;
prune_rom;
port arsw "RW" {
clock posedge;
}
port ar "R" {
option "MODE" "SP" {
option "SIZE" 32 cost 1;
option "SIZE" 64 cost 2;
}
option "MODE" "DP" {
option "SIZE" 32 cost 2;
option "SIZE" 64 cost 4;
port ar "R" {
}
}
}