
iCE40 SPRAM Usage Guide
Technical Note
© 2016 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at www.latticesemi.com/legal. All other brand or product names are
trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
2 TN1314-1.0
Contents
Introduction ..................................................................................................................................................................31.
Single Port RAM Primitives ...........................................................................................................................................32.
2.1. User Primitive SB_SPRAM256KA .........................................................................................................................3
2.2. SPRAM Port Definitions and GUI Options ...........................................................................................................4
Power Save States for SPRAM ......................................................................................................................................63.
3.1. Normal State .......................................................................................................................................................6
3.2. Standby State ......................................................................................................................................................6
3.3. Sleep State...........................................................................................................................................................6
3.4. Power Off State ...................................................................................................................................................6
Use Cases for User Primitive SB_SPRAM256KA............................................................................................................74.
4.1. Instantiating Memories .......................................................................................................................................7
4.2. Inferring Memories .............................................................................................................................................7
4.3. Output Pipeline Registers....................................................................................................................................7
4.4. Cascading Memories ...........................................................................................................................................8
Address Cascading (or Depth Cascading)........................................................................................................84.4.1.
Data Cascading (or Width Cascading) .............................................................................................................94.4.2.
Technical Support Assistance .............................................................................................................................................10
Revision History ..................................................................................................................................................................11
Figures
Figure 2.1. SB_SPRAM256KA SPRAM Primitive ....................................................................................................................3
Figure 4.1. Address/Depth Cascading Example for 32K x 16 SPRAM using Primitive...........................................................8
Figure 4.2. Data/Width Cascading Example for 16K x 32 SPRAM using Primitive ................................................................9
Tables
Table 2.1. SB_SPRAM256KA RAM Port Definitions ..............................................................................................................4