|
EDA365欢迎您!
您需要 登录 才可以下载或查看,没有帐号?注册
x
lattice的ICE40UL1K内部的RAM是分了好多个块的,我在lattice的官网上只找到了ICE40系列内部的RAM使用手册,一个RAM块是4Kbit,我用的ice40ul1k是由14个RAM块的,我现在要存的东西需要用到几乎14个RAM块,但是现在不知道该怎么制定我要用哪个RAM,怎么往里边存东西,请各位指导一下,谢谢。如下是使用手册给的原语,只用到了一个RAM块
+ m: S# }& O& w8 l9 w# {' Z6 S# g' w5 D0 ?: T) @
SB_RAM256x16 Primitive `, x7 s: U3 o% r2 Z
Verilog Instantiation
- a G& t. A& P8 GSB_RAM256x16 ram256x16_inst (( |7 _! p' l& g8 P0 w( [ f) A
.RDATA(RDATA_c[15:0]),# e( E/ Q {0 [1 a8 u; H
.RADDR(RADDR_c[7:0]),, {( ?9 {2 u! u) V2 R
.RCLK(RCLK_c),% L% d/ V6 ^( I0 f+ ?
.RCLKE(RCLKE_c),& x: X) ]/ |/ k" t1 B. W
.RE(RE_c),
/ E; v, n% y" B: ^' v7 b.WADDR(WADDR_c[7:0]),
5 i: {: M: L( Y3 L/ t! v: f' V.WCLK(WCLK_c), A2 ~6 _3 G% [. t! H* x
.WCLKE(WCLKE_c),/ v7 V* {2 A. R6 W0 k; R; b( ~ w/ V
.WDATA(WDATA_c[15:0]),/ ~ l) e! i3 k( y H; L9 ]5 e
.WE(WE_c),
3 a9 l2 L2 d# u$ }8 i3 B.MASK(MASK_c[15:0])
. t! ~6 z0 K& }1 n- d);
' j3 ^1 E+ B4 l+ edefparam ram256x16_inst.INIT_0 =
8 @# K# ^) v& r: J" X256'h0000000000000000000000000000000000000000000000000000000000000000;8 s/ s5 i8 h, \& E
defparam ram256x16_inst.INIT_1 =. d5 l* A: [- W; S: U5 y& ^( @
256'h0000000000000000000000000000000000000000000000000000000000000000;
# d" Y2 {2 K' Y- R! X( @( A+ Cdefparam ram256x16_inst.INIT_2 =* m, V4 q8 E* v. l g- L
256'h0000000000000000000000000000000000000000000000000000000000000000; ?' v+ p B/ R, L
defparam ram256x16_inst.INIT_3 =7 ?# j+ I9 S; T2 [" C) }; p6 p
256'h0000000000000000000000000000000000000000000000000000000000000000;
0 h' r" V$ q: m7 p" {0 h) Vdefparam ram256x16_inst.INIT_4 =3 R- a! T0 I3 n5 i/ ?8 V% N* r
256'h0000000000000000000000000000000000000000000000000000000000000000;7 ~# C1 R& Q8 P# a: K6 a/ E8 S. J0 S
defparam ram256x16_inst.INIT_5 =
6 h0 Y2 f9 A ?$ _2 C: I& H$ @" x256'h0000000000000000000000000000000000000000000000000000000000000000;$ M* i1 H' l5 k- V! b
defparam ram256x16_inst.INIT_6 =8 L. S2 i+ B0 l5 v9 n J. f
256'h0000000000000000000000000000000000000000000000000000000000000000;. k) ~: R: y6 q5 W+ U- u
- R2 } l5 R7 u# zdefparam ram256x16_inst.INIT_7 =5 _6 w4 A& D$ V: A T7 [
256'h0000000000000000000000000000000000000000000000000000000000000000;
' ^7 J* \! {+ Z0 f2 l) G5 hdefparam ram256x16_inst.INIT_8 =# B2 y# v a9 Y
256'h0000000000000000000000000000000000000000000000000000000000000000;! j3 |" S9 A% i+ K% T
defparam ram256x16_inst.INIT_9 =
$ ^$ y3 V# h9 Z% i* x( ]' f256'h0000000000000000000000000000000000000000000000000000000000000000;4 {$ b0 j9 K" p, h; B
defparam ram256x16_inst.INIT_A =
3 j$ N' Y$ T x+ {; `5 C7 F+ v256'h0000000000000000000000000000000000000000000000000000000000000000;
$ ]! m0 S) X; D' Ldefparam ram256x16_inst.INIT_B = L5 C; I4 U, i G: \% B! V
256'h0000000000000000000000000000000000000000000000000000000000000000;0 w$ p K: H: q: {0 W
defparam ram256x16_inst.INIT_C =
* {) v; T$ m& D& |6 O ]& }256'h0000000000000000000000000000000000000000000000000000000000000000;6 S# h& g1 z) I) I
defparam ram256x16_inst.INIT_D =+ W% K7 j/ k1 `0 r$ s1 T, u9 ^
256'h0000000000000000000000000000000000000000000000000000000000000000;
& ?& f& X, E/ b& N" ydefparam ram256x16_inst.INIT_E =6 N& @2 T9 Q3 }+ F
256'h0000000000000000000000000000000000000000000000000000000000000000;
5 d) o, m2 \1 ]5 M# j* s) g! Udefparam ram256x16_inst.INIT_F =
8 w4 |1 n7 ^' d3 Z5 K3 X. ]0 Y256'h0000000000000000000000000000000000000000000000000000000000000000;
- m" w5 g* w' [2 ]+ ]# r
1 h& K% e6 d+ W1 K
7 \& A! N. o" `# S1 B' j( _2 F9 Q |
|