|
EDA365欢迎您!
您需要 登录 才可以下载或查看,没有帐号?注册
x
lattice的ICE40UL1K内部的RAM是分了好多个块的,我在lattice的官网上只找到了ICE40系列内部的RAM使用手册,一个RAM块是4Kbit,我用的ice40ul1k是由14个RAM块的,我现在要存的东西需要用到几乎14个RAM块,但是现在不知道该怎么制定我要用哪个RAM,怎么往里边存东西,请各位指导一下,谢谢。如下是使用手册给的原语,只用到了一个RAM块
' u: M6 l8 L7 y( R" p/ a# v; J+ G$ @
8 D7 |/ f' i0 y) S( I- J6 h# l! YSB_RAM256x16 Primitive3 r0 K. W$ h8 J9 w! }% q
Verilog Instantiation
' h5 z- s4 C p+ B2 j2 m; z4 _ USB_RAM256x16 ram256x16_inst (; u6 M# S" \- i; m; q8 O
.RDATA(RDATA_c[15:0]),
' i/ m& |/ h( M9 ?* C1 H5 c.RADDR(RADDR_c[7:0]),
$ E$ S9 e$ G# w h! m6 _) a.RCLK(RCLK_c),7 D; a8 k) D8 J" P
.RCLKE(RCLKE_c),4 c \, N0 S7 E' J( s
.RE(RE_c),
2 a1 q( I) l- |; W& c.WADDR(WADDR_c[7:0]),
, U3 _8 | ^4 ^% S7 s4 ^9 `) |.WCLK(WCLK_c),
T6 s: _; R$ f+ l0 v6 k- _3 P.WCLKE(WCLKE_c),
. g; Q0 h4 O" l" @: `3 r; y, ].WDATA(WDATA_c[15:0]),
% D0 c1 ~. Z8 F.WE(WE_c),. v8 E/ [; {- A
.MASK(MASK_c[15:0])+ K( J; _- v9 a) v0 j8 m( B. K
);
1 M, R" z6 _# t' s* Z$ a% Gdefparam ram256x16_inst.INIT_0 =- }* a J4 X7 v, e9 d9 E
256'h0000000000000000000000000000000000000000000000000000000000000000;
1 C( J `% B/ Y$ adefparam ram256x16_inst.INIT_1 =: L g" t* t8 u p' @
256'h0000000000000000000000000000000000000000000000000000000000000000;+ Z# }8 D* E0 X8 V ^: e' ]
defparam ram256x16_inst.INIT_2 =
( T8 p' Z8 w9 Y3 s! a$ A7 Z4 o S256'h0000000000000000000000000000000000000000000000000000000000000000;; c" ]/ c3 R3 `0 p W# Z- I
defparam ram256x16_inst.INIT_3 =
1 a' @9 v* v1 B* I256'h0000000000000000000000000000000000000000000000000000000000000000;
' w& }# |* t. ]6 O$ V7 V4 bdefparam ram256x16_inst.INIT_4 =
8 @5 p& i5 ?# H% w256'h0000000000000000000000000000000000000000000000000000000000000000;
+ k% V5 i3 }/ ]! k8 a# Tdefparam ram256x16_inst.INIT_5 = X' @6 P: H( E9 M R
256'h0000000000000000000000000000000000000000000000000000000000000000;; f% Z+ u5 n3 ^$ p" P. R
defparam ram256x16_inst.INIT_6 =# l! o! N5 n0 k/ P/ @
256'h0000000000000000000000000000000000000000000000000000000000000000; \+ ^; o _" _6 p2 W
5 e$ K0 e5 d0 Qdefparam ram256x16_inst.INIT_7 =; _* }8 J% ?: I9 }5 \- Y0 Z
256'h0000000000000000000000000000000000000000000000000000000000000000;
- D2 q4 [% P4 Z8 ], e+ d- tdefparam ram256x16_inst.INIT_8 =% o' K- g8 `; \6 I: S
256'h0000000000000000000000000000000000000000000000000000000000000000;
$ F4 S u! G& Q4 i! t3 zdefparam ram256x16_inst.INIT_9 =
2 Y- F) }, u5 d" V9 A, K( L256'h0000000000000000000000000000000000000000000000000000000000000000;8 |1 f2 j% f% g6 ]. O/ }/ N9 j
defparam ram256x16_inst.INIT_A =. X, S+ ]+ W% V K
256'h0000000000000000000000000000000000000000000000000000000000000000;
# {4 a% f @* h+ Y; F+ ]defparam ram256x16_inst.INIT_B =$ t' ]4 g6 q0 n
256'h0000000000000000000000000000000000000000000000000000000000000000;: s# U+ c' H5 n) N
defparam ram256x16_inst.INIT_C =
3 d" t7 y) o" j, O/ H' h; i" c256'h0000000000000000000000000000000000000000000000000000000000000000;, W& C( p- H) _, y- C
defparam ram256x16_inst.INIT_D =
# E. \& F# i7 h4 I7 E4 ^256'h0000000000000000000000000000000000000000000000000000000000000000;$ @9 x' [' t) Z/ A
defparam ram256x16_inst.INIT_E =: p8 Y* x8 ^, }5 `0 O0 I/ Z+ g
256'h0000000000000000000000000000000000000000000000000000000000000000;
' R" v; X% |& Q$ ?defparam ram256x16_inst.INIT_F =- I V- F$ Q- q% y5 F
256'h0000000000000000000000000000000000000000000000000000000000000000;( V, I$ M7 r. g4 q; U" T- o
& g: g8 j: u& Z$ s8 R
) y" r4 g* V1 K |
|