P2 - CLOBJECTS? (Yeah we might need a wordsmith to polish that one...)
ctwardell
Posts: 1,716
I was just thinking of some uses for CLMM (executing code from the CLUT) and one of them would be to create objects that reside mainly within the CLUT.
This means runniing in multi-tasking mode and you wouldn't be able to use them in a COG that was using the CLUT for video or other purposes, but that still leaves a lot of open use cases.
Since multi-tasking is used and CLMM in multi-taking mode will do something like 1/5 to 1/3* instructions per "cycle" made available to the CLMM "thread" these would be fairly low speed items.
I'm planning to do a UART this way this coming weekend for use with a small language I'm porting over to the P2 so it can all fit within a single COG and run on the DEO-Nano.
It seems like this would work well for things like multiplexed LED drivers, I2C and other low speed protocols.
* I believe CLMM Engine #2 will work with multi-tasking, haven't tried it yet. One or two of the NOP's after the POPAR that wait on the instruction to be ready for execution may be able to be removed when multi-tasking, which I think would get us close to the 1/3 figure.
C.W.
This means runniing in multi-tasking mode and you wouldn't be able to use them in a COG that was using the CLUT for video or other purposes, but that still leaves a lot of open use cases.
Since multi-tasking is used and CLMM in multi-taking mode will do something like 1/5 to 1/3* instructions per "cycle" made available to the CLMM "thread" these would be fairly low speed items.
I'm planning to do a UART this way this coming weekend for use with a small language I'm porting over to the P2 so it can all fit within a single COG and run on the DEO-Nano.
It seems like this would work well for things like multiplexed LED drivers, I2C and other low speed protocols.
* I believe CLMM Engine #2 will work with multi-tasking, haven't tried it yet. One or two of the NOP's after the POPAR that wait on the instruction to be ready for execution may be able to be removed when multi-tasking, which I think would get us close to the 1/3 figure.
C.W.
Comments
Picture Christmas morning when my 11 year old daughter opens a gift from Santa with a slightly puzzled expression on her face...with a twinkle in my eye, I say, "Santa must have made a mistake, don't worry honey, if you can't use it, I'm sure daddy can find SOMETHING to do with a DEO-Nano!!
Yeah, you need one. I put it off at first because I thought, what could I possibly do with just one cog...
C.W.
Yeah, it's like an Arduino (or all those other MCUs)!!
With the 4 way hardware task scheduling you can pretend you have 4 COGS!
Now with your CLMM you can pretend you have 5 !
Exactly. 4 pretend cogs running at ~ 15 MIPS, or 3 pretend cogs running at 20 ~MIPS, like the existing prop1. Unfortunately the 512 long cog memory has to be split up, but on the other hand we now have a CLUT and tighter instructions.
Perhaps we should use the DE0-Nano leds to indicate how many threads are running...
You can imagine my disappointment when digikey shipped some crappy 20 pin locking headers instead of a DE2.
Its all sorted now, but somewhere, someplace, somebody who ordered some headers has been gifted a DE2, and isn't about to return it
What a major league downer. Hope you get it sorted soon.
Wow, sorry to inject bad karma into the stream!
Someone could have a DE2 and not a clue what to do with it and is REALLY upset at Digikey for not getting those 20 pin headers out right!
No, I bet they are complaining that their headers are missing to complete their project and they have this crappy board that they have no idea how to use. But maybe they will not return it just in case. Just checking eBay now for a cheap unused DE2
There is a DEO-Nano for the budget price of $120.00...
http://www.ebay.com/sch/i.html?_trksid=p5197.m570.l1313&_nkw=de0-nano&_sacat=0&_from=R40
I always thought "gifted" was an adjective used to describe talented children and such like. I guess you mean "given".
Perhaps, in this case it should be "misgiven"?
Surely its a verb, just like google.
Now you have me wondering. I found this on the internet, so it must be true:-
When Henry [Ford] was 15, his father gifted him a pocket watch, which the young boy promptly took apart and reassembled.
I'll check with the true authority on this kind of thing (better half).
Yes, Digikey sorted it out quickly and shipped out another DE2 on a 1 day express service. Unfortunately that translates into a 5 day service by the time it arrives at this farflung outpost, but it has indeed arrived and is sitting on my desk awaiting propeller2fication.
That's GOTTA be a word!!!
Anyway, never mind, I'm just being picky.
"propeller2fication" on the other hand is a work of art and a word that could be used a lot around here in the coming months/years.
Wow, think I've waded into something interesting here. Seaching the net a bit, you're certainly not the first to bristle.
It seems perhaps common in Scotland (I do have some Scottish ancestry but nowhere near enough to wear a kilt). Here is a bit of a discussion about it. Also the Scottish dictionary (search for 'gifted' as 'full text' then highlight the verb form)
Whatever next... you do realize I have a DE2 sitting on my desk sitting idle until this is fully resolved