mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-09 17:31:59 +00:00
39 lines
483 B
Text
39 lines
483 B
Text
# 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;
|
|
}
|
|
width 1;
|
|
init no_undef;
|
|
prune_rom;
|
|
port arsw "RW" {
|
|
clock posedge;
|
|
}
|
|
port ar "R" {
|
|
}
|
|
}
|