Home    Bloggers    Messages    Webinars    Resources   
Tw  |  Fb  |  In  |  Rss
Why PicoBlaze? Running Blinky the LED
7/30/2012

Image 1 of 2      Next >

Here we see Blinky the LED in the lower lefthand corner of the breadboard.
Here we see Blinky the LED in the lower lefthand corner of the breadboard.

Image 1 of 2      Next >

Return to Article

Page 1 / 2   >   >>
jacklsw86
jacklsw86
8/8/2012 4:58:47 AM
User Rank
Blogger
picoblaze synthesized wrongly in synplify pro?
I started to play around with picoblaze(KCPSM6) and tried to fit it into my project's Spartan 6 chip. Weird thing is the picoblaze synthesized by xilinx's XST is able to complete implementation whereas for picoblaze synthesized by synplify pro is not able to get past mapping (with some pack:2811 errors).

I intended to fit in picoblaze in the existing FPGA design for some hacking/debugging purposes and the whole project is synthesized in synplify pro so I need to get picoblaze workable in synplify pro as well but seems like there's some obstacles in my way :(

Well, I'll try to talk to xilinx guy who implemented picoblaze, he seems pretty helpful.

50%
50%
Max Maxfield
Max Maxfield
8/7/2012 3:50:10 PM
User Rank
Blogger
Re: PicoBlaze
@nsuresheee: I agree. Even if you don't have an imperitive need to use  PicoBlaze, it's nice to build one in so it's available for "housekeeping stuff" like monitoring switches or flashing LEDs...

50%
50%
Max Maxfield
Max Maxfield
8/7/2012 3:45:40 PM
User Rank
Blogger
Re: In support of Blinky
@Bill: Quite apart from anything else, when you plug a board in it's nice to see a LED flash on and off just to tell you that power is getting through...

50%
50%
Max Maxfield
Max Maxfield
8/7/2012 3:44:14 PM
User Rank
Blogger
Re: In support of Blinky
@jacklsw86: Good point -- flashing the LEDs is a simple task, so looking at th eway the code was written (and commented) tells you a lot...

50%
50%
nsuresheee
nsuresheee
8/7/2012 1:11:14 PM
User Rank
Beginner
PicoBlaze
Paul, I have spent quite some time with picoblaze in my projects which I used it with spartan 3 FPGA. I liked the idea of controlling the LED using the processor. I have used picoblaze with uart, spi, i2c and interrupt controller modules. Its nice educating about picoblaze in a forum like this.

50%
50%
Duane Benson
Duane Benson
8/2/2012 12:30:49 PM
User Rank
Blogger
Re: In support of Blinky
Bill - $.02 can go a long way with new hardware. I usually design a few LEDs onto my MCU board layouts with no purpose other than to help with my debuggin and test. I can always leave them de-populated in the final board if I want to save the few pennies.

50%
50%
jacklsw86
jacklsw86
8/1/2012 3:11:36 AM
User Rank
Blogger
Re: In support of Blinky
Well, you can roughly tell if someone's good in his/her codings by looking at how well the LEDs are programmed ;)

50%
50%
Bill White
Bill White
7/31/2012 11:50:00 PM
User Rank
Expert
Re: In support of Blinky
@Duane--isn't it amazing how the blinking of a $.02 LED can tell you so much?  Now I know why the "Blinky" program is included on so many eval and promotional boards.

50%
50%
Brian
Brian
7/31/2012 2:11:27 PM
User Rank
Guru
Re: The error that gets me most often.
 

@Duane, Hamster: Re: "scratching my head wondering why I have no life at all..."

Ditto!  We must have all taken this same course in college! :-)

 

50%
50%
Max Maxfield
Max Maxfield
7/31/2012 12:12:02 PM
User Rank
Blogger
Re: The error that gets me most often.
@Paul: Re your interview story, I have a similar tale. As part of an interview I was once asked how I would diagnose a board that was exhibiting strange behavior.

I replied that my first approach would be to take a WAG (wild ass guess) ... although I'm sure I didn't use those words ... based on whatever I could see (flashing lights, what other parts of the system were doing). My rational was that when you have experiance, just looking at what something is doing can give you a lot of clues as to what the fault might be.

I also said that if this failed, then I would revert to the methodical approach, going step-by-step through all the possible problems. The thing is that using your intuition can often get you where you want to be a lot faster than doing it "by the book" ... but you also have to know when to draw the line and say "OK, that wasn't the problem, now let's start from ground zero..."

50%
50%
Page 1 / 2   >   >>
More Blogs from Paul Clarke
Now it's time to look at the memory interface that will supply the information required by our PicoBlaze 8-bit soft processor core.
We've now reached the point where we are ready to start debugging a PicoBlaze-based design using the ISim software simulation tool.
For some reason, my simulation never loads my memory with any contents. Instead, it's left containing undefined ('UUUU...') states. Can you help?
The PicoBlaze does not come with the ability to single step, set breakpoints, and monitor registers and memory, so we need a way to get around these limitations.
As opposed to rebuilding the entire design every time we "tweak" the code we wish to run on the PicoBlaze soft microcontroller core, we can simply use a JTAG tool to load our executable code directly into the FPGA's on-chip memory.
flash poll
follow us on twitter
follow Xilinx on twitter
like us on facebook
like Xilinx on facebook
All Programmable Planet     About Us     Contact Us     Help     Register     Twitter     Facebook     RSS