嵌入式軟件系統(tǒng)設(shè)計(jì):08_memory_第1頁
嵌入式軟件系統(tǒng)設(shè)計(jì):08_memory_第2頁
嵌入式軟件系統(tǒng)設(shè)計(jì):08_memory_第3頁
嵌入式軟件系統(tǒng)設(shè)計(jì):08_memory_第4頁
嵌入式軟件系統(tǒng)設(shè)計(jì):08_memory_第5頁
已閱讀5頁,還剩30頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、1Embedded System Architecture lecture 08-MemoryJun WANG2ContentsMemory array overviewType of memoryRAMSRAMDRAMROMLogic by memoryFPGA3Memory ArraysEfficiently store large amounts of dataThree common types:Dynamic random access memory (DRAM)Static random access memory (SRAM)Read only memory (ROM)An M-

2、bit data value can be read or written at each unique N-bit address.4Two-dimensional array of bit cells Each bit cell stores one bitAn array with N address bits and M data bits:2N rows and M columnsDepth: number of rows (number of words)Width: number of columns (size of word)Array size: depth width =

3、 2N M Memory Arrays522 3-bit arrayNumber of words: 4Word size: 3-bitsFor example, the 3-bit word stored at address 10 is 100Memory Array: ExampleExample:6Memory Arrays7Memory Array Bit CellsExample:8Memory Array Bit CellsExample:01ZZ9Wordline: similar to an enableallows a single row in the memory ar

4、ray to be read or writtencorresponds to a unique addressonly one wordline is HIGH at any given timeMemory Array10Types of MemoryRandom access memory (RAM): volatileRead only memory (ROM): nonvolatile11RAM: Random Access MemoryVolatile: loses its data when the power is turned offRead and written quic

5、klyMain memory in your computer is RAM (DRAM)Historically called random access memory because any data word can be accessed as easily as any other (in contrast to sequential access memories such as a tape recorder)12ROM: Read Only MemoryNonvolatile: retains data when power is turned offRead quickly,

6、 but writing is impossible or slowFlash memory in cameras, thumb drives, and digital cameras are all ROMsHistorically called read only memory because ROMs were written at manufacturing time or by burning fuses. Once ROM was configured, it could not be written again. This is no longer the case for Fl

7、ash memory and other types of ROMs.13Types of RAMTwo main types of RAM:Dynamic random access memory (DRAM)Static random access memory (SRAM)Differ in how they store data:DRAM uses a capacitorSRAM uses cross-coupled inverters14Robert Dennard, 1932 -Invented DRAM in 1966 at IBMOthers were skeptical th

8、at the idea would workBy the mid-1970s DRAM was in virtually all computers15Data bits stored on a capacitorCalled dynamic because the value needs to be refreshed (rewritten) periodically and after being read:Charge leakage from the capacitor degrades the valueReading destroys the stored valueDRAM16D

9、RAM17SRAM18Memory ArraysDRAM bit cell:SRAM bit cell:19ROMs: Dot Notation20Fujio Masuoka, 1944-Developed memories and high speed circuits at Toshiba from 1971-1994. Invented Flash memory as an unauthorized project pursued during nights and weekends in the late 1970s. The process of erasing the memory

10、 reminded him of the flash of a camera Toshiba slow to commercialize the idea; Intel was first to market in 1988 Flash has grown into a $25 billion per year market.21ROM Storage22ROM LogicData2 = A1 A0Data1 = A1 + A0Data0 = A1A023Example: Logic with ROMsImplement the following logic functions using

11、a 22 3-bit ROM:X = ABY = A + BZ = AB24Example: Logic with ROMsImplement the following logic functions using a 22 3-bit ROM:X = ABY = A + BZ = A B25Logic with Any Memory ArrayData2 = A1 A0Data1 = A1 + A0Data0 = A1A026Logic with Memory ArraysImplement the following logic functions using a 22 3-bit mem

12、ory array:X = ABY = A + BZ = A B27Logic with Memory ArraysCalled lookup tables (LUTs): look up output at each input combination (address)28Multi-ported MemoriesPort: address/data pair3-ported memory2 read ports (A1/RD1, A2/RD2)1 write port (A3/WD3, WE3 enables writing)Small multi-ported memories are

13、 called register files29/ 256 x 3 memory module with one read/write portmodule dmem(input clk, we, input 7:0 ainput 2:0 wd, output 2:0 rd); reg 2:0RAM255:0; assign rd = RAMa; always (posedge clk) if (we) RAMa = wd;endmoduleVerilog Memory Arrays30Logic ArraysField programmable gate arrays (FPGAs)Arra

14、y of configurable logic blocks (CLBs)LUT as key componentPerform combinational and sequential logicConfiguration is based on SRAM31FPGAs: Field Programmable Gate ArraysComposed of:CLBs (Configurable logic blocks): perform logicIOBs (Input/output buffers): interface with outside worldProgrammable interconnection: connect CLBs and IOBsSome FPGAs include other building blocks such as multipliers and RAMs32Xilinx Spartan 3 FPGA Schematic33CLBs: Configurable Logic BlocksComposed of:LUTs (lookup tables): perform combinational logicFlip-flops: perform sequential functionsMultiplexers:

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論