论文部分内容阅读
为了提高嵌入式多媒体应用的实时性能,提出了一种最大化数据并行访问以便充分发挥CPU处理能力的片上存储器分配方法。CPU指令的并行数据访问以及CPU与直接存储器存取(DM A)的并行访问都可能导致冲突,片外存储器的慢速存取也会导致CPU流水线停止。根据CPU处理数据的需要分配片上存储器,采用DM A动态地将数据转移到片上,减小存取慢速片外存储器带来的延时;充分利用CPU多条数据总线并行访问多个存储器块的能力和双端口存储器(DARAM)一个周期两次访问的能力,减小存储器带宽的限制。实验结果表明:合理分配存储器,程序执行时间最多减少了48%。存储器分配该方法简单,易于实现。
In order to improve the real-time performance of embedded multimedia applications, an on-chip memory allocation method is proposed to maximize the data parallel access in order to give full play to the CPU processing power. Parallel data access by the CPU instruction and parallel accesses by the CPU and direct memory access (DM A) can all cause conflicts, and slow access to off-chip memory can also cause the CPU pipeline to stop. Allocate on-chip memory according to the needs of the CPU to process data and dynamically transfer the data to the chip by using DM A to reduce the delay caused by accessing slow off-chip memory; make full use of multiple data buses of the CPU to access multiple memory blocks in parallel Capabilities and dual-ported memory (DARAM) twice a visit to the ability to reduce the memory bandwidth limit. The experimental results show that the memory allocation can reduce the program execution time by up to 48%. This method of memory allocation is simple and easy to implement.