|
EDA365欢迎您!
您需要 登录 才可以下载或查看,没有帐号?注册
x
lattice的ICE40UL1K内部的RAM是分了好多个块的,我在lattice的官网上只找到了ICE40系列内部的RAM使用手册,一个RAM块是4Kbit,我用的ice40ul1k是由14个RAM块的,我现在要存的东西需要用到几乎14个RAM块,但是现在不知道该怎么制定我要用哪个RAM,怎么往里边存东西,请各位指导一下,谢谢。如下是使用手册给的原语,只用到了一个RAM块0 m$ d. I$ z& M& D8 l! R0 Z: r
9 m8 j' h2 N& ]4 q& T( \% I3 PSB_RAM256x16 Primitive o/ a, x8 X- f& W4 v2 B- j V7 l
Verilog Instantiation5 q P. }7 H+ \5 d+ V" t
SB_RAM256x16 ram256x16_inst (: M; y) f7 \' a4 C
.RDATA(RDATA_c[15:0]),
/ i" x! i2 `+ `* Z% w.RADDR(RADDR_c[7:0]),9 ]6 G) C3 I& f8 T% a
.RCLK(RCLK_c),* }/ D% D! s3 o- V3 |( |( j% F
.RCLKE(RCLKE_c),
8 G& C4 c5 p- C8 V2 A.RE(RE_c),) T5 {9 J7 I" z8 z/ N I, l
.WADDR(WADDR_c[7:0]), E0 ?6 Q% G! {. s/ j6 O
.WCLK(WCLK_c),
$ `# |0 j1 [* `) Z- s# k.WCLKE(WCLKE_c),. k. x' _" M- N6 e' J
.WDATA(WDATA_c[15:0]),
3 @, N( z# X7 k" x2 m.WE(WE_c),9 i, [. ^: p8 G E
.MASK(MASK_c[15:0])
% N1 T( V3 S, j% l9 t/ }' l) |);0 i7 i( T( H. ]8 q9 Q
defparam ram256x16_inst.INIT_0 =! A. R0 U- @. P9 p% P' g3 V2 Z
256'h0000000000000000000000000000000000000000000000000000000000000000;: t/ L. U2 P8 D7 b! l; w
defparam ram256x16_inst.INIT_1 = }3 s/ x d: N1 }% a
256'h0000000000000000000000000000000000000000000000000000000000000000;
' r' Y$ _ O* b# q; Odefparam ram256x16_inst.INIT_2 =
7 H: K6 ]7 ?1 b+ a6 r- K8 x256'h0000000000000000000000000000000000000000000000000000000000000000;/ `. Y5 ]; _/ I, e: } h& q
defparam ram256x16_inst.INIT_3 =
1 |. d2 y' Q2 G3 H" {256'h0000000000000000000000000000000000000000000000000000000000000000;
* F$ ^; H- Q4 `$ t- kdefparam ram256x16_inst.INIT_4 =
& @* P% a; J7 y1 k6 @7 t" |* h256'h0000000000000000000000000000000000000000000000000000000000000000;' ]% ~# F; g+ l2 T$ W- n
defparam ram256x16_inst.INIT_5 =
m! d. m) u, b256'h0000000000000000000000000000000000000000000000000000000000000000;
# Q$ b+ t! w, l/ V) V: S- F6 ^1 Zdefparam ram256x16_inst.INIT_6 =
* s B) w6 S( t% C256'h0000000000000000000000000000000000000000000000000000000000000000;& Z5 h9 ]- Z7 ?
/ z! P: C# l5 G
defparam ram256x16_inst.INIT_7 =
a+ i4 Y+ E: m6 t2 Z' M+ Y( w, s256'h0000000000000000000000000000000000000000000000000000000000000000;4 u, {! _7 u! D; s5 q8 D1 f3 ?& F
defparam ram256x16_inst.INIT_8 = O3 [, J3 |2 ?
256'h0000000000000000000000000000000000000000000000000000000000000000;) i3 l% O, |% q) J; ]' q( A
defparam ram256x16_inst.INIT_9 =
& N9 H' C# C' i9 B256'h0000000000000000000000000000000000000000000000000000000000000000;) U, d( ?7 u. _. S! N9 K
defparam ram256x16_inst.INIT_A =
) e- O: Y+ i! p256'h0000000000000000000000000000000000000000000000000000000000000000;% s- g8 p3 N( v' S5 \+ [! _
defparam ram256x16_inst.INIT_B =
- {( D4 I1 I$ M256'h0000000000000000000000000000000000000000000000000000000000000000;/ N7 j- W) s! V+ D C6 G% }+ U
defparam ram256x16_inst.INIT_C =
9 V# u e# |. q: r0 {256'h0000000000000000000000000000000000000000000000000000000000000000;
- ~# O. R& V. ?0 s3 Pdefparam ram256x16_inst.INIT_D =
7 B) |7 H, h: j1 u s7 @% `; ?256'h0000000000000000000000000000000000000000000000000000000000000000;9 @" Y3 r! K, ^+ z8 A: V
defparam ram256x16_inst.INIT_E =
* b5 k2 W2 V! n0 A* p z9 b* y4 G256'h0000000000000000000000000000000000000000000000000000000000000000;
* C; X! D3 c+ u4 A( d. Jdefparam ram256x16_inst.INIT_F =4 b& h8 J8 x: q. t' P$ N7 k
256'h0000000000000000000000000000000000000000000000000000000000000000;
. E2 P4 k! w- c( H, B
/ g/ @6 J% K, s' \! a0 j& w1 [2 O9 X
* l, ~1 Q/ R3 K6 v( y$ L |
|