Home    Bloggers    Messages    Webinars    Resources   
Tw  |  Fb  |  In  |  Rss
Duane Benson

Discovering FPGAs: Driving a 7-Segment Display

Duane Benson
Page 1 / 2 Next >
Page 1 / 3   >   >>
tomii
tomii
12/12/2012 10:08:43 AM
User Rank
Blogger
Re: Not including resistors in your drive chain.
My point f contention with my Opal Kelly board was to find that not all IO pins are I/O.  Some are I only.  I haven't delved deeper, but I assumethere may be a few O only, as well.  he compiler spent a fair amount of time complaining that there was a contention with the IOB pins.  Once I figured that out and moved my pins around, everything was copacetic.

 

I guess me putting this post up indicates that I'm caught up to here, anyway.  I need to add a switch or two, yet, though.  Still getting by on just a mom switch.

50%
50%
tomii
tomii
12/5/2012 2:35:03 PM
User Rank
Blogger
Trying to keep up
So, I'm falling behind.

 

I mentioned before that I'm using an Opal Kelly XEM3005.  Awesome little board, although considerably more expensive than your device.


For the 7-segment display, I thought I would try linking into the software hooks provided with the device.  Turns out that's a bit harder than I thunk it would be.  I spent a week trying to figure that out, with no success.

I then spent a week roaming around tutorials, videos, etc, just generally related things.


Then I went back and tried unsuccessfully tried to make things work that worked previously.


Then went *way* back to my first "helloworld" implementation (prior to picking up your series).  This, I did using the Xilinx ISE schematic capture.


I've not yet remembered to pick up a 7-seg display, resistors, wire, and breadboard, so I've not completed this tutorial, yet.  However, some thoughts:

 

First:  A lot of things I've found (videos, etc) expect you to know a lot of things going in to them, but it's a pain to try to figure out what it is you *don't* know, so you can go back and try to pick some of them up.

Second:  I've been told that, anecdotally, the USA has a pretty clean break between VHDL and Verilog.  Apparently, the split is at the Mississippi river, and those to the West mostly use Verilog, while those tot he East primarily use VHDL.


Interesting.

I'm finding the Verilog a little harder to wrap my head around, I think, as I've been a hardware designer (with software as a side-line) for many years, now.

Also, I noticed some things about implementation.  So, as I said, my first "hello world" was done in schematics.  Looking in the technology implementation schematic, what I "drew up" matches very closely to what wasi mplemented in bit code.

On the other hand, the nearly identical thing in Verilog used over 2x the resouces (maybe 3x, depending on how you look at it.  So, getting where you want to go may be easier in Verilog, but there certainly seems to be a price to be paid.  In this case, it would appear to be in efficiency of hardware implementation.  This doesn't really surrise me, but there it is.


So, I'l suht up for now, and leave you all with those (mostly) worthless pieces of information.

50%
50%
hamster
hamster
11/13/2012 6:04:39 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
I've been looking into driving a LED directly from an I/O pin with a good old  multimeter.

The drive strengths seem to indicate the amount of current that can be drawn/sunk while still keeping the H/L levels within the standard's specs. It doesn't look to be a current limit.

The short circuit current of the I/O driver looks to be a lot higher than the I/O drive strength, so direct driving LEDs is most likely a bad move for the LEDs service life.

Can anybody confirm that this is the case?

50%
50%
Duane Benson
Duane Benson
9/4/2012 5:05:56 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
Adam - I haven't gotten around to PlanAhead yet. That's one of the parts of the tool chain I have to go back to and examine yet.

50%
50%
Adam Taylor
Adam Taylor
8/17/2012 12:53:38 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
The Xilinx tool PlanAhead is also good, although not quite as integrated it can be great at telling you if you have issues with your pin placement. 

50%
50%
Duane Benson
Duane Benson
8/17/2012 12:52:02 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
I read up a bit on Mentor I/O Designer. It's not in the cards for me due to the cost, but it looks like a good tool and it looks like answers my questions relating to PCB layout. I had been wondering about the process of placing the FPGA pins and whether it's reasonable to map pins based on PCB layout rather than based on what's best for the internals of the FPGA.

50%
50%
Adam Taylor
Adam Taylor
8/8/2012 2:15:22 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
In the work environment I find that mentors IO designer is great for keeping the board design, FPGA and IO banking all tied together nicely. 

50%
50%
thrakkor
thrakkor
8/8/2012 2:01:29 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
been there, done that too (and i'm sure i will again).  IO standards are super easy to screw up.

 

as an alternative to the UCF, I believe you can use VHDL attributes to set them (not sure about verilog).

50%
50%
Duane Benson
Duane Benson
8/8/2012 1:54:00 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.

"(although maybe obvious) is that all IOSTANDARDS in a given bank need to be compatible with each other and the actual bank I/O voltage"

That is obvious to me, but I still missed it at one point and spent a half hour searching for some "mystery problem" that just happened to be me mixing some LVCMOS18 and LVCMOS33 IOSTANDARDs in the same bank.

Sigh...

50%
50%
Brian
Brian
8/8/2012 12:36:25 PM
User Rank
Guru
Re: Not including resistors in your drive chain.
 

@jacklsw86: thanks for the detailed response!

Re: "(how I wish it can do such magic)"

Maybe one of the FPGA manufacturers will read your post on APP and make it happen one of these days!  :-)

 

50%
50%
Page 1 / 3   >   >>
More Blogs from Duane Benson
Duane has decided that the time is ripe to get his ZedBoard bolted onto his robot with a Linux distribution up and running. That was the ultimate plan anyway, so why wait?
Now it's time to delve deeper into the state machine I'm using to control my I2C interface.
The three states associated with bi-directional "inout" pins can cause confusion for the unwary.
It's time to jump into unexplored territory -- the state machine that will control Duane Benson's I2C interface.
We're now ready for the I2C master to transmit a command set to a remote device.
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