For more information about ioremap-general Linux technology-Linux programming and kernel, see the following. I used at91rm9200 to plug-in an fpga. How fast can it be read/write?
U32 p;
P = ioremap (test_add1, 2 );
* (Volatile unsigned short *) p = 0x22;
P = ioremap (test_add2, 2 );
* (Volatile unsigned short *) p = 0x33;
When the two addresses are written, the cs effective time (low level) is 220ns, and the interval between the two addresses is 175us, which is too slow,
I just tested it again. If
U32 p;
P = ioremap (test_add1, 2 );
* (Volatile unsigned short *) p = 0x22;
P = ioremap (test_add2, 2 );
* (Volatile unsigned short *) p = 0x33;
The interval is 172us, but if
P = ioremap (FIG, 1024 );
For (I = 0; I <1024; I ++)
{
* (Volatile unsigned short *) p = I
P ++;
}
The whole time is us. What is the problem?
I think it is the same. Why is there such a big difference? Will ioremap take too much time?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service