Shop OBEX P1 Docs P2 Docs Learn Events
Changes and GETCT - Page 2 — Parallax Forums

Changes and GETCT

2»

Comments

  • MJBMJB Posts: 1,235
    so two COGs executing at the same time
    would both get the same lower 32 bits and one the correct upper 32 bits corresponding to the 32 lower bits ?
    and this ALL the time !!
    		COG1							COG2					
    	getct	upper	wc				nop
    	getct	lower					getct	lower
    
  • evanhevanh Posts: 15,126
    edited 2019-07-14 08:00
    MJB wrote: »
    so two COGs executing at the same time
    would both get the same lower 32 bits and one the correct upper 32 bits corresponding to the 32 lower bits ?
    and this ALL the time !!
    		COG1							COG2					
    	getct	upper	wc				nop
    	getct	lower					getct	lower
    
    MJB,
    I'm not sure what the question is. All cogs can do that in parallel. Each cog separately reads the single global 64-bit CT counter. Yes, one cog can be capturing 64 bits while another only 32 bits. They'll probably each have their own adjustment logic because it'll be in the instruction operation. The counter itself has to be operating on a regular binary carry to correctly follow binary order. Also, the low word 32-bit CT bus is global for smartpins too. It can't be touched.

    Maybe the high word can be fiddled globally. That's possible.
Sign In or Register to comment.