Andes Workshop

It is currently Fri Mar 29, 2024 7:58 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 利用Diagnosis程式測試local memory
PostPosted: Sat Mar 12, 2011 11:04 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
ADP-XC5內建的Diagnosis program有一個測試memory的功能,
先寫入再讀出數值做比較。
我們利用這個程式,
先將local memory enabled,並設定位址,
即可檢查local memory的讀寫是否正常。

Step1:
先將ILM base設到0x04000000,並enable它。(set $mr6=0x04000001)
DLM base設到0x05000000,並enable它。 (set $mr7=0x05000001)
Attachment:
pp1.gif
pp1.gif [ 16.81 KiB | Viewed 10405 times ]



Step2:
利用Diagnosis程式的(14)測試local memory。
本程式掃過的範圍是0x04000000~0x08000000。
三個測試均pass
Attachment:
pp2.gif
pp2.gif [ 10.62 KiB | Viewed 10405 times ]


Step3:
測試完成,再用gdb連進去看0x04000000的這個位置。
數值為0xaaaa5555,為剛才的測試pattern。
然後我把ILM disabled ( set $mr6=0x0 )
得到數值變成讀dram的位置 0x12345678
Attachment:
pp3.gif
pp3.gif [ 16.24 KiB | Viewed 10405 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group