|
EDA365欢迎您!
您需要 登录 才可以下载或查看,没有帐号?注册
x
lattice的ICE40UL1K内部的RAM是分了好多个块的,我在lattice的官网上只找到了ICE40系列内部的RAM使用手册,一个RAM块是4Kbit,我用的ice40ul1k是由14个RAM块的,我现在要存的东西需要用到几乎14个RAM块,但是现在不知道该怎么制定我要用哪个RAM,怎么往里边存东西,请各位指导一下,谢谢。如下是使用手册给的原语,只用到了一个RAM块
' ~( j1 V! g& U) |1 V i
# }0 K; U6 C9 M0 ?5 i" ySB_RAM256x16 Primitive
$ [/ k. U6 I' Z! fVerilog Instantiation4 W2 C3 C8 Q! ?3 h; [; L
SB_RAM256x16 ram256x16_inst (
# o' u! f4 K/ X! p) C/ c- R.RDATA(RDATA_c[15:0]),
+ D5 Y$ e9 p5 I: I0 G.RADDR(RADDR_c[7:0]), b A3 h* P( d* Q/ _6 @7 ]
.RCLK(RCLK_c),
' l1 m5 R A" a+ ]$ k1 X) e.RCLKE(RCLKE_c),9 Z, s: d$ O+ j3 [2 W
.RE(RE_c),; s5 C! v# S) C# i6 f
.WADDR(WADDR_c[7:0]),; D8 k) `% F" H6 u4 Q
.WCLK(WCLK_c),- z4 e ~0 o" M. Z+ M2 }
.WCLKE(WCLKE_c), K4 t0 U6 J+ j, D4 V" q
.WDATA(WDATA_c[15:0]),# m5 @0 C) c& \9 F. G0 T
.WE(WE_c), h, Q- e/ O; l. P7 U; l
.MASK(MASK_c[15:0])
8 o* j6 E$ |/ f+ o2 E, T/ Q( V' u);
- }( \" m0 }0 A( N" {- M `' Mdefparam ram256x16_inst.INIT_0 =3 q7 m- ~; c0 \% n/ f4 _+ Q& D
256'h0000000000000000000000000000000000000000000000000000000000000000;1 [- `7 W* K9 ]# \3 y6 o# B% M
defparam ram256x16_inst.INIT_1 =
& i5 G, |5 z; M. z, C. ]" a256'h0000000000000000000000000000000000000000000000000000000000000000;9 N2 S+ J3 J% z, }. F
defparam ram256x16_inst.INIT_2 =7 F" y" o3 I+ x0 k3 E
256'h0000000000000000000000000000000000000000000000000000000000000000;
' j% H* f4 T J1 edefparam ram256x16_inst.INIT_3 =" f0 m4 o7 c/ o! f, e% _
256'h0000000000000000000000000000000000000000000000000000000000000000;' A. {2 e8 T, e
defparam ram256x16_inst.INIT_4 =, c8 ] a' Y- E# ?
256'h0000000000000000000000000000000000000000000000000000000000000000;
4 j3 \7 }6 v7 L$ bdefparam ram256x16_inst.INIT_5 =6 \; B! B6 H) u' O( x& X
256'h0000000000000000000000000000000000000000000000000000000000000000;$ O! ?& p g& ]! ~+ M7 G
defparam ram256x16_inst.INIT_6 =* }0 Q ?0 R' ~8 c! U2 z4 s
256'h0000000000000000000000000000000000000000000000000000000000000000;
7 N. H. b( X9 H; H
- {3 H9 \5 F9 G, mdefparam ram256x16_inst.INIT_7 =
3 _. `4 X3 `1 s8 ^) y256'h0000000000000000000000000000000000000000000000000000000000000000;5 U U0 G( S8 }. r
defparam ram256x16_inst.INIT_8 =
1 o5 ?( o/ {, F! _. o256'h0000000000000000000000000000000000000000000000000000000000000000;6 v Y7 @6 V5 ^ o- a6 [
defparam ram256x16_inst.INIT_9 =
& b5 H/ n4 q7 \7 Q2 {256'h0000000000000000000000000000000000000000000000000000000000000000;* o" s2 F; S+ \
defparam ram256x16_inst.INIT_A =
' C2 l g( G% j256'h0000000000000000000000000000000000000000000000000000000000000000;
$ u) R+ [8 ?! `9 @6 @defparam ram256x16_inst.INIT_B =! ~2 D) f- c3 W( k
256'h0000000000000000000000000000000000000000000000000000000000000000;
% b, v+ D$ Y6 s& Jdefparam ram256x16_inst.INIT_C =
. R, n7 D9 e+ U$ f# R, a) S# M256'h0000000000000000000000000000000000000000000000000000000000000000;* V+ q7 i$ H6 K& W; r
defparam ram256x16_inst.INIT_D =
3 L- u! X6 O3 Q% B5 d& x0 @' w3 u256'h0000000000000000000000000000000000000000000000000000000000000000;
( ~8 E& g4 [+ N! x+ z. Hdefparam ram256x16_inst.INIT_E = M3 t$ a$ o- V) H
256'h0000000000000000000000000000000000000000000000000000000000000000;( N; ?/ ?3 V e: m6 B3 L; |& N1 A
defparam ram256x16_inst.INIT_F =
) v6 Y! |6 j a" v+ M {* z) ]. \256'h0000000000000000000000000000000000000000000000000000000000000000; X( o8 b+ W/ H, R' q
- F) K D$ ]( v2 [9 L" ~: J$ ~
N: }2 L8 i6 l( c! D6 F4 m% f) F! a% n- { |
|