aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/nexus/lrams.txt
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2022-02-08 03:52:50 +0100
committerMarcelina Koƛcielnicka <mwk@0x04.net>2022-05-18 17:32:56 +0200
commit0a8eaca322a622610efe5a0d33d1cda83e4afa8c (patch)
tree4d34ed2365f87d7a4c9da09de9fda0e1e00d101c /techlibs/nexus/lrams.txt
parenta04b025abff798f37d580a7d30084497d61d0fe0 (diff)
downloadyosys-0a8eaca322a622610efe5a0d33d1cda83e4afa8c.tar.gz
yosys-0a8eaca322a622610efe5a0d33d1cda83e4afa8c.tar.bz2
yosys-0a8eaca322a622610efe5a0d33d1cda83e4afa8c.zip
nexus: Use `memory_libmap` pass.
Diffstat (limited to 'techlibs/nexus/lrams.txt')
-rw-r--r--techlibs/nexus/lrams.txt43
1 files changed, 21 insertions, 22 deletions
diff --git a/techlibs/nexus/lrams.txt b/techlibs/nexus/lrams.txt
index 481629b98..ad2845783 100644
--- a/techlibs/nexus/lrams.txt
+++ b/techlibs/nexus/lrams.txt
@@ -1,22 +1,21 @@
-bram $__NX_PDPSC512K
- init 1
-
- abits 14
- dbits 32
-
- groups 2
- ports 1 1
- wrmode 1 0
- enable 4 1
- transp 0 0
- clocks 2 2
- clkpol 2 2
-endbram
-
-match $__NX_PDPSC512K
- # explicitly requested LRAM only, due to limited availability and
- # slower Fmax
- attribute lram
- shuffle_enable A
- make_transp
-endmatch
+ram huge $__NX_DPSC512K_ {
+ abits 14;
+ width 32;
+ byte 8;
+ cost 2048;
+ init no_undef;
+ port srsw "A" "B" {
+ clock posedge "C";
+ clken;
+ wrbe_separate;
+ rdwr no_change;
+ option "RESETMODE" "SYNC" {
+ rdsrst zero gated_clken;
+ }
+ option "RESETMODE" "ASYNC" {
+ rdarst zero;
+ }
+ rdinit zero;
+ wrtrans all old;
+ }
+}