2025-09-23 12:08:17 +02:00
|
|
|
# Single-port RAMs.
|
|
|
|
|
|
|
|
|
|
ram distributed $__ANALOGDEVICES_LUTRAM_SP_ {
|
|
|
|
|
option "ABITS" 5 {
|
2025-10-08 03:08:41 +02:00
|
|
|
cost 1;
|
2025-09-23 12:08:17 +02:00
|
|
|
abits 5;
|
|
|
|
|
}
|
|
|
|
|
option "ABITS" 6 {
|
2025-10-08 03:08:41 +02:00
|
|
|
cost 2;
|
2025-09-23 12:08:17 +02:00
|
|
|
abits 6;
|
|
|
|
|
}
|
2025-10-09 05:38:49 +02:00
|
|
|
width 1;
|
2025-09-23 12:08:17 +02:00
|
|
|
init no_undef;
|
|
|
|
|
prune_rom;
|
|
|
|
|
port arsw "RW" {
|
2025-10-18 13:11:18 +02:00
|
|
|
clock posedge;
|
2025-09-23 12:08:17 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Dual-port RAMs.
|
|
|
|
|
|
|
|
|
|
ram distributed $__ANALOGDEVICES_LUTRAM_DP_ {
|
|
|
|
|
option "ABITS" 5 {
|
2025-10-08 03:08:41 +02:00
|
|
|
cost 2;
|
2025-09-23 12:08:17 +02:00
|
|
|
abits 5;
|
|
|
|
|
}
|
|
|
|
|
option "ABITS" 6 {
|
2025-10-08 03:08:41 +02:00
|
|
|
cost 4;
|
2025-09-23 12:08:17 +02:00
|
|
|
abits 6;
|
|
|
|
|
}
|
2025-10-09 05:38:49 +02:00
|
|
|
width 1;
|
2025-09-23 12:08:17 +02:00
|
|
|
init no_undef;
|
|
|
|
|
prune_rom;
|
2025-10-09 05:38:49 +02:00
|
|
|
port arsw "RW" {
|
2025-09-23 12:08:17 +02:00
|
|
|
clock posedge;
|
|
|
|
|
}
|
2025-10-08 03:08:41 +02:00
|
|
|
port ar "R" {
|
|
|
|
|
}
|
2025-09-23 12:08:17 +02:00
|
|
|
}
|