element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development EGPIO access is too slow to be useful
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 328 subscribers
  • Views 304 views
  • Users 0 members are here
Related

EGPIO access is too slow to be useful

Former Member
Former Member over 11 years ago


I'm doing some timing tests using MicroZed board.
I need to know the maximum data rate from PS to GPIO or EGPIO.

I have a logic analyzer connected to PIO.J5.
I written a C program that writes directly to MIO.DATA_0 regiseters (see code below)

I measure 60ns-120ns per access (write to GPIO0->DATA_0)

This is less than 10 Mhz!!
 
How can I acheive sustained 100Mhz data rate to PL if
the fastest I can push data from PS is < 10Mhz?

What am I doing wrong???

How do I speed up the STR command ???


//------------ C code source ------------------------

fd = open("/dev/mem", O_RDWR | O_SYNC)) == -1) FATAL;

// mmap the MicroZed GPIO page

target = GPIO_BASEADDR ;  // physical ARM IO registers
map_base = mmap(
   0,                      // caddr_t addr
   GPIO_SIZE,              // size_t len = 4K =4096 = 0x1000 Bytes
   PROT_READ | PROT_WRITE, // int prot
   MAP_SHARED,             // int flags
   fd,                     // int filehandle
   target & ~GPIO_MASK     // off_t offset
   );


microzed_gpio = (microzed_gpio_t *)(map_base) ;
volatile unsigned long *gpio_dout0 = &(microzed_gpio->dout0) ;
volatile unsigned long *gpio_dout1 = &(microzed_gpio->dout1) ;

...
...

while( microzed_gpio->DIN1.b19 != 1 ) {

    *(gpio_dout0) = D0_MASK ;
    *(gpio_dout0) = 0  ;

    *(gpio_dout0) = D1_MASK ;
    *(gpio_dout0) = 0  ;

    *(gpio_dout0) = D2_MASK ;
    *(gpio_dout0) = 0  ;

    *(gpio_dout0) = D3_MASK ;
    *(gpio_dout0) = 0  ;

    *(gpio_dout0) = D4_MASK ;
    *(gpio_dout0) = 0  ;

    *(gpio_dout0) = D5_MASK ;
    *(gpio_dout0) = 0  ;

    *(gpio_dout0) = D6_MASK ;
    *(gpio_dout0) = 0  ;

    *(gpio_dout0) = D7_MASK ;
    *(gpio_dout0) = 0  ;

    }

//-------while loop dissambled code -------------
198                .L19:
199 01ac 40B084E5    str     fp, [r4, #64] // 60nS
200 01b0 403084E5    str     r3, [r4, #64] // 60ns
201 01b4 40A084E5    str     r10, [r4, #64]
202 01b8 403084E5    str     r3, [r4, #64]
203 01bc 409084E5    str     r9, [r4, #64]
204 01c0 403084E5    str     r3, [r4, #64]
205 01c4 408084E5    str     r8, [r4, #64]
206 01c8 403084E5    str     r3, [r4, #64]
207 01cc 407084E5    str     r7, [r4, #64]
208 01d0 403084E5    str     r3, [r4, #64]
209 01d4 400084E5    str     r0, [r4, #64]
210 01d8 403084E5    str     r3, [r4, #64]
211 01dc 40E084E5    str     lr, [r4, #64]
212 01e0 403084E5    str     r3, [r4, #64]
213 01e4 40C084E5    str     ip, [r4, #64]
214 01e8 403084E5    str     r3, [r4, #64]
215 01ec 641092E5    ldr     r1, [r2, #100]
216 01f0 020711E3    tst     r1, #524288
217 01f4 ECFFFF0A    beq     .L19

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 11 years ago

    I've generated a new BitStream with the AXI GPIO in PL.
    Now I need to have the MicroZed boot this instead of the original (system.bit). 
    How do I do this?
    I'm having trouble finding the necessary HOWTOs for BitStreams and Liunx. Any help would be great.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 11 years ago

    I've generated a new BitStream with the AXI GPIO in PL.
    Now I need to have the MicroZed boot this instead of the original (system.bit). 
    How do I do this?
    I'm having trouble finding the necessary HOWTOs for BitStreams and Liunx. Any help would be great.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube