当前位置:网站首页>What is the difference between norflash and nandflash
What is the difference between norflash and nandflash
2022-06-25 07:32:00 【Programmer base camp】
NorFlash And NandFlash What's the difference?
1. Interface comparison
NorFlash With universal SRAM Interface , It can be easily attached to CPU The address of 、 On the data bus , Yes CPU Low interface requirements .
NandFlash Devices use complex I/O To access data serially ,8 Two pins are used to transmit control 、 Address and data information . Due to the complexity of time sequence , So general CPU It's better to integrate NAND controller . In addition, due to NandFlash Not attached to the address bus , So if you want to use NandFlash As the startup disk of the system , Need CPU It has special functions , Such as s3c2410 After being chosen as NandFlash Start mode will be automatically read when power on NandFlash Of 4k Data to address 0 Of SRAM in . If CPU It doesn't have this special function , Users cannot run directly NandFlash The code on , That can be done in other ways , For example, many use NandFlash In addition to using NandFlash outside , I also used a small piece NorFlash To run the startup code .
2. Capacity and cost comparison
Compared with NandFlash Come on ,NorFlash Small capacity , Generally in 1~16MByte about , Some new technologies use chip stacking technology to NorFlash The capacity should be larger . In terms of price ,NorFlash comparison NandFlash Say higher , For example, there is a lot of 4Mbyte Of AM29lv320 NorFlash The retail price is 20 yuan , And a piece of 128MByte Of k9f1g08 NandFlash The retail price is 30 yuan .
NandFlash The production process is simpler ,NAND The structure can provide higher capacity within a given die size , This will reduce the price accordingly .

3. Reliability comparison
NAND The bad blocks in the device are randomly distributed , There have been efforts to eliminate bad blocks before , But the yield is too low , The price is too high. , It's not worth it at all .NAND The device needs to scan the medium to find the bad block , And mark the bad block as unavailable . In fabricated devices , If this cannot be done by reliable means , Will result in a high failure rate . The bad block problem is NorFlash It doesn't exist .
stay Flash Bit flip ( One bit Bits flip ) Phenomenally ,NAND Is more likely to occur than NorFlash Much more . The question is Flash It's fatal to store critical files , So it's using NandFlash It is recommended to use at the same time EDC/ECC And so on .
4. Life comparison
stay NAND The maximum number of erasures per block in flash memory is one million , and NOR The number of erasures is 100000 . The lifetime of flash memory is also related to the mechanism of file system , The file system is required to have a loss balancing function .
5. Upgrade comparison
NorFlash The upgrade of is more troublesome , Because of different capacities NorFlash Your address line needs are different , So we are replacing with different capacity NorFlash The chip is inconvenient . We usually solve this problem by making some jump resistors on the address line of the circuit board , For different capacities NorFlash.
And different capacity NandFlash The interface of is fixed , So the upgrade is simple .
6. Read and write performance comparison
Write operations : whatever flash The device can only be written in empty or erased cells .NAND It is very simple for the device to perform erase operation , and NOR Before erasing, all the bits in the target block must be written as 1. erase NOR The device is based on 64~128KB It's done in blocks , Perform an erase / The write operation takes approximately 5s. erase NAND The device is based on 8~32KB It's done in blocks , Perform an erase / At most, the write operation only needs 4ms.
Read operations :NOR Reading speed ratio of NAND fast .
7. File system comparison
Linux The system uses MTD To manage different types of Flash chip , Include NandFlash and NorFlash. Support in Flash Common file systems running on are cramfs、jffs、jffs2、yaffs、yaffs2 etc. .cramfs The file system is read-only . If you want to Flash Implement read and write operations on , Usually in NorFlash We will choose jffs And jffs2 file system , stay NandFlash Choose from yaffs or yaffs2 file system .Yaffs2 The file system supports large pages ( Greater than 512 byte / page ) Of NandFlash Memory .
边栏推荐
- Explain distributed raft with dynamic diagram
- 48 张图 | 手摸手教你微服务的性能监控、压测和调优
- 【批處理DOS-CMD命令-匯總和小結】-外部命令-cmd下載命令、抓包命令(wget)
- 威迈斯新能源冲刺科创板:年营收17亿 应收账款账面价值近4亿
- 【批处理DOS-CMD命令-汇总和小结】-cmd扩展命令、扩展功能(cmd /e:on、cmd /e:off)
- The principle of Zener diode, what is its function?
- Why use NoSQL with MySQL?
- Design a MySQL table for message queue to store message data
- Ltpowercad II and ltpowerplanner III
- Using awk to process input from multiple files
猜你喜欢

Orcad Schematic常用功能

【批處理DOS-CMD命令-匯總和小結】-外部命令-cmd下載命令、抓包命令(wget)
![[Batch dos - cmd Command - Summary and Summary] - cmd extension Command, extension Function (CMD / E: on, CMD / E: off)](/img/2b/4495a6cd41a2dd4e7a20ee60b398c9.png)
[Batch dos - cmd Command - Summary and Summary] - cmd extension Command, extension Function (CMD / E: on, CMD / E: off)

【批處理DOS-CMD命令-匯總和小結】-cmd擴展命令、擴展功能(cmd /e:on、cmd /e:off)

【批处理DOS-CMD命令-汇总和小结】-cmd扩展命令、扩展功能(cmd /e:on、cmd /e:off)
![[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)](/img/2b/4495a6cd41a2dd4e7a20ee60b398c9.png)
[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)

LTpowerCAD II和LTpowerPlanner III

Why "New Year's Eve", the original memory burst!

How is the network connected?

栅格地图(occupancy grid map)构建
随机推荐
Icon already includes gloss effects
韩信大招:一致性哈希
The king scheme in distributed locks - redisson
Sqlmap advanced use – cookies
Classic paper in the field of character recognition: aster
LTpowerCAD II和LTpowerPlanner III
[Batch dos - cmd Command - Summary and Summary] - External Command - cmd Download Command, wget Command
13 `bs_duixiang.tag标签`得到一个tag对象
Alphassl wildcard certificate for one month
VectorDraw Web Library 10.10
有了 MySQL 为什么要用 NoSQL?
Large funds support ecological construction, and Plato farm builds a real meta universe with Dao as its governance
哇哦,好丰富呀。
【批处理DOS-CMD命令-汇总和小结】-cmd扩展命令、扩展功能(cmd /e:on、cmd /e:off)
[batch dos-cmd command - summary and summary] - application startup and call, service and process operation commands (start, call, and)
14 BS object Node name Name attrs string get node name attribute content
[introduction to UVM== > episode_9] ~ register model, integration of register model, general methods of register model, application scenarios of register model
lotus v1.16.0-rc2 Calibration-net
The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
【批处理DOS-CMD命令-汇总和小结】-上网和网络通信相关命令(ping、telnet、nslookup、arp、tracert、ipconfig)