next_1234 发布于 2007-7-23 13:25:00
在系统中添加多个存储器后,如一个sram,一个flash,可以设置程序运行的存储器, 当要使用另一个存储器的时候,如何访问?这时候各存储器组件的时序如何? 请各位赐教 caopengly 发布于 2007-7-23 21:28:00
“当要使用另一个存储器的时候,如何访问?这时候各存储器组件的时序如何?” .text : 代码区 .rodata:只读数据区,一般存放静态全局变量 .rwdata:可读写变量数据区另外还有.bss:存放未被初始化的变量。 ■ .text — the actual executable code ■ .rodata — any read only data used in the execution of the code ■ .rwdata — where read/write variables and pointers are stored ■ heap — where dynamically allocated memory is located ■ stack — where function call parameters and other temporary data is stored 上面可以选择你需要的存储器。 如果要在程序中访问存储器,可以用IORD(BASE, REGNUM) 等语句,具体读写由驱动完成。对用户是透明的。 也可以自己写componont来控制。 -  这个版主不太冷 =========================== 我的中电网博客:http://blog.chinaecnet.com/u/20/index.htm next_1234 发布于 2007-7-24 10:03:00
多谢斑竹大人了, 自己写的componont有个问题,就是其中的read、write、cs等信号设置为input,但在bdf图中是以输出的形式表现出来的,为什么? 还有个问题就是如果需要通用的输出管脚,类型设置里有export,但编译后在bdf中却没有这几个管脚, 可能都是一个问题,麻烦讲解一下 |