Site Home Archive Home FAQ Home How to search the Archive How to Navigate the Archive
Compare FPGA features and resources
Threads starting:
Authors:A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
"John_H" <johnhandwork@mail.com> wrote in message news:<pDYdb.14$XP3.1342@news-west.eli.net>...
> <snip>
> In either the Xilinx or Altera architecture, it's probably most efficient to
> pre-add in groups of 4 bits then add thse results in an adder tree. For 32
> bits (for instance) you can get 8 values with counts of 0-4 with simple
> LUTs.
> <snip>
> - John_H
I love coming back to a subject and gaining a
little more insight!
In the current discussion (and the thread from
3 years ago) I made a mistake (and so has
everyone else contributing, a surprising
event on usenet). There is a seeming paradox,
in that it is more efficient to use the LUTs
to do a three input sum at the leaves of the adder
tree than to do a 4 input sum. I'll show below the
most efficient (area wise) FPGA implementations that
I know (for 16 bits, and OP's 30 bits), and challenge
anyone to come back and show an even better way.
After that, some simple words about the 'paradox'
of why the three input/LUT solution is better than
four input/LUT in this case.
Look first at a _LUT_only_ implementation (16 bits),
which applies to any LUT based FPGA...
A full adder (FA3) can be implemented in 2 LUTs
These are 3-LUTs!, not 4-LUTS, although in practice
4-LUTs are used because that is what is available.
It is also called a (3,2) counter.
See L.Dadda's papers, including "Pipelined Adders"
in IEEE Transactions on Computers, Mar 1996,
for a good discussion of adders, or Patterson et.al
on "Optimal Carry Save Networks", available at Citeseer,
for better/deeper discussions than I can give.
This is the full adder:
___
-0-| F |
-0-| A |-1-
-0-|_3_|-0-
(the numbers are powers of 2 at a position)
Repeating: The FA3 sums 3 bits, using 2 3-LUTs.
Next, 4 full adders are arranged to sum 7 bits,
using 8x 3-LUTs:
___
0--| F |
0--| A |-1--------+
0--|_3_|-0---+ | ___
| +-----1-| F |
___ +--|----------1-| A |---2
0--| F | | | ___ +1-|_3_|---1
0--| A |-1+ +0-| F | |
0--|_3_|-0----0-| A |-1+
0-------------0-|___|-0-----------0
Call the above a 7 Adder (7Add):
___
| 7 |
7 | A |-2-
0-/-| d |-1-
|_d_|-0-
(a more correct term might be '(7,3) counter',
but '7Add' fits in the ascii drawing)
Two 7Adds can be used to sum 14 bits into
two 3-bit numbers, using 16x 3-LUTs.
3x 4-LUTs are used to sum 4 bits to a 3-bit
result in a 4Add:
___
| 4 |
4 | A |---2
0-/-| d |---1
|_d_|---0
Produce the final result from the output of the
two 7Adds plus the remaining two bits, using
two 4Adds and an FA:
___
| 7 |
7 | A |-2-------------------------------+ ___
0-/-| d |-1-------------------+ +-2-| 4 |
|_d_|-0-----+ +-------|-------------2-| A |--4
| | +-|-------------2-| d |--3
| | | | ___ +-2-|_d_|--2
___ +---|-----+ | +-1-| F | |
| 7 | | +-|-----------|---1-| A |-2-+
7 | A |-2-+ | | ___ | +-1-|___|--------------1
0-/-| d |-1---+ +-0-| 4 | | |
|_d_|-0-------0-| A |-2-+ |
0-----------------0-| d |-1---+
0-----------------0-|_d_|----------------------------0
Total LUT count is 24 (3 Virtex CLBs), using
6x 4-LUTs and 18x 3-LUTs. This is the absolute
minimum using 3-LUT and 4-LUT based logic alone
(that I know of).
Now look at how the VirtexII carry logic may
improve things...
At the leaves of the tree (left hand side), two 3-LUTs
are still used to build full adders. The next step is
building a 7Add, which sums the output of 2 FAs plus
one more bit. Here, either carry logic can be used,
at a total cost of 8 LUTs, or a LUT only solution, also
costing 8 LUTs. A 15Add sums two 7Adds and another bit.
This costs two 7Adds (16 LUTs), plus a standard 3 bit
carry logic based adder with carry-in and carry-out, another
5 LUTs. Adding in the last bit is a 4 bit increment with
carry-out, costing 6 LUTs using carry logic. Total: 27 LUTs!
Three more than the LUT only circuit. Frustrating, isn't it?
For this size, a sum of 16 bits, trying to use carry logic
does worse than a LUT only implementation. For a 15Add, carry
logic allows a marginal improvement of one LUT, using only
21 LUTs instead of 22. For larger bit counts, the carry logic
becomes increasingly important, as will be explained below.
Finally, a few simple-minded words about the 'paradox'...
Many operations can be viewed as an exercise in compression,
reducing a number of inputs to a smaller number of outputs
through some sort of multi-level tree structure. In this case,
inputs are the bits to count, and outputs are the count. At any
tree level, a simple, naive figure of merit qualifies a circuit:
(InputBits/OutputBits) * (InputBits/LUTs)
The larger this number, the better the circuit is for that level.
The first ratio helps the tree converge faster, the second reduces
the LUT count. For 4-LUT based logic, the highest possible figure
of merit would be 16, indicating four input bits produce a single
output bit, with a single LUT. Parity trees, "and" trees, "or"
trees acheive 16.
Implementing the leaf side initial level of bit counting
with 4-LUTs gives (4/3)*(4/3)=1.778. Implementing the initial bit
counting with 3-LUTs gives (3/2)*(3/2)=2.25. At any stage where
bits of the same weight are aggregated and compressed, the 3-LUT
implementation is better if they can be grouped by threes.
At the end of the 16Add tree, some 4-LUTs are used to advantage
because there are 4 signals to combine that cannot be cleanly
split into groups of three. For every other location in the tree,
the 3-LUTs work out better.
When carry logic is used at a combining stage, uniting
two addends of the same size plus an LSB, the metric becomes:
((2*Size+1)/(Size+1))*((2*Size+1)/(Size+2))
where Size is the number of bits in each addend.
This gives:
Size Merit
1 1.5
2 2.083
3 2.45
4 2.7
... approaching 4
When 3-LUT based full adders are cascaded to add
two numbers and a carry-in, the metric becomes:
((2*Size+1)/(Size+1))*((Size+1)/(2*Size))
Giving:
Size Merit
1 2.25
2 2.083
3 2.042
4 2.025
... approaching 1
Comparing the tables, for combining three equal weight
bits, the LUT solution is better; for going from full adder
to 7Add the two circuits have equal LUT count; for
going from 7Add to 15Add carry logic should be used.
The optimum (30,5) counter (that I know of) uses a mix of
3-LUTs and carry-logic, and no 4-LUTs.
Whew! Talk about being over-anal(ytical). Hope I haven't
bored anyone, just wanted to get the 'best' circuits public
(in hopes someone else has a better one), and show something
not immediately obvious about the leaves of the adder tree.
Peter's BlockRam implementation is also slick!
I'll finish with a question:
Just what are the best/worst results from HDL synthesis
tools that folks get with this function? I.e., barring
forcing the mapping, and letting the tool optimize from
something like:
Count <= Bit0 + Bit1 + Bit2 +...
Regards,
John
p.s. Original poster asked about 30 bits...here's the
most compact way I know, but I haven't spent much
time on 30 bits. Here the carry logic helps. Note
that none of the LUTs are configured as 4-LUT....
___
0-| F |
0-| A |-1-------+
0-|_3_|-0-----+ |
___ | | ___
0-| F | | +-1-| F |
0-| A |-1-----|---1-| A |-2-----------------+
0-|_3_|-0-+ +-|---1-|_3_|-1---------------+ |
___ | | | ___ | |
0-| F | +-|-|---0-| F | | |
0-| A |-1---+ +---0-| A |-1---+ | |
0-|_3_|-0---------0-|_3_|-0---|---------+ | |
___ | | | |
0-| F | | ___ | | |
0-| A |-1-------+ + | F | | | |
0-|_3_|-0-----+ | +---1-| A |-|-|-|-2---+
___ | | ___ | +-1-|_3_|-|-|-|-1-+ |
0-| F | | +-1-| F | | | | | | | |
0-| A |-1-----|---1-| A |-2-|-|-------+ | | | | | ___
0-|_3_|-0-+ +-|---1-|_3_|-1-+ | | | | | | | '0'-4-| |
___ | | | ___ | | | | | | | '0'-3-| |
0-| F | +-|-|---0-| F | | | | | | | +------2-| C |
0-| A |-1---+ +---0-| A |-1---|-----+ | | | | +--------1-| Y |-4
0-|_3_|-0---------0-|_3_|-0---|---+ | | | | | '0'-0-| A |-3
___ | | | | | | | ___ | d |-2
0-| F | | | | | | | |'0'-3-| |-4-| d |-1
0-| A |-1-------+ | | | | | | +----2-| C |-3-| |-0
0-|_3_|-0-----+ | | | | | | +------1-| Y |-2-| |
___ | | ___ | | | | +--------0-| A |-1-| |
0-| F | | +-1-| F | | | | | ___ | d |-0-|___|
0-| A |-1-----|---1-| A |-2---|-+ | | +--2 | C |-3-| d | |
0-|_3_|-0-+ +-|---1-|_3_|-1---+ | | +----1-| Y |-2-| | 0
___ | | | ___ | +------0-| A |-1-| | |
0-| F | +-|-|---0-| F | +--------2-| d |-0-|___| |
0-| A |-1---+ +---0-| A |-1--------------1-| d | | |
0-|_3_|-0---------0-|_3_|-0--------------0-|___| 0 |
| | |
0 | |
0--------------------------------------------+ | |
0----------------------------------------------------+ |
0------------------------------------------------------------+
LUT Count:
18 + 12 + 2 + 5 + 6 + 6 = 49
49 LUTs = 8.125 CLBs
(Pipeline to taste)
HTH
(apologies for being late to the thread, suffered a disk crash
recently, could not post)
Article: 61776John, just to be contrary: Remember my suggestion of using a 4K x 4 dual-ported BlockROM. So it can take 24 inputs and generate two 4-bit outputs that then have to be combined externally. On two BlockROMs you can have 48 inputs and then combine 4 sets of 4 inputs in one or two CLBs. Fast and simple, but needs a trigger clock, since BlockROMs are synchronous. Peter Alfke, Xilinx Applications >>>>>>>>>>>> 220 lines of un-needed quote removed by archive managerArticle: 61777
In article <3F85E01C.A0E99EFA@xilinx.com>, eric.crabill@xilinx.com says... > you will need to put in some design > effort. That's an understatement! -- Rich Iachetta I do not speak for IBMArticle: 61778
In article <3F86E3E4.BED89355@xilinx.com>, Eric Crabill <eric.crabill@xilinx.com> wrote: >PCI and PCI-X are not busses that provide guaranteed >bandwidth. I've seen bandwidth on a PCI 64/66 bus fall >to 40 Mbytes/sec during certain operations because the >devices on it were designed poorly (mostly for the >reasons I stated in the first paragraph). Also just type of transaction can contribute as well. Just TRY streaming through (in -> memory -> out) two 1 Gb ethernet ports when you have full rate, minimum sized packets, using PCI or PCI-X based hardware. >I'm not trying to discourage you from using a Xilinx >solution. However, I'd prefer that potential customers >make informed design decisions that result in the best >combination of price/performance/features. A very good attitude, I wish more companies would give such advice. -- Nicholas C. Weaver nweaver@cs.berkeley.eduArticle: 61779
Dear all, I am working on (compound) function approximation with one input variable using piecewise polynomial approximation with non-linear joints. These approximations are implemented in hardware using Xilinx FPGAs. Example of such functions include: f(x)=sqrt(-ln(x)) or f(x)=x*ln(x) where x = [0,1), which are used for Gaussian noise generation (Box-Muller method) and Entropy calculation respectively. Does anyone know any other real-life applications where compound functions need to be approximated? My second question is on the function f(x)=sqrt(-ln(x)) over x = [0,1). This function is highly non-linear and approaches infinity as x gets close to zero. This requires floating point implementation (due to the large polynomial coefficients, which I want to avoid). Are there any transformations I am apply to the function to decompose it 2 or more functions that are more linear? (Note that ln(x) is also highly non-linear over x = [0,1)) Regards, Dong-U LeeArticle: 61780
The core voltage on Xilinx Eval board ML3000 is 1.65V, according to both schematic diagram and user's guide. It is not 1.5V as datasheet says. Can somebody shed light on why? Thanks -qlyusArticle: 61781
Vazquez wrote: > Dear Mr Treseler, > > thank youu for your answer. I have looked at the pdf-file you recommended. > On page 50 there is the VHDL description of a single-clock synchronous RAM, > but I use two clocks. If you want to infer a dual clock ram, you need to have a process for each clock. See the architecture for lpm_ram_dp in http://www.edif.org/lpmweb/more/220model.vhd for an example. However, if you want to simplify your timing analysis, consider synchronizing your accesses to a single clock and using a single clock ram. -- Mike TreselerArticle: 61783
D Lee wrote: > Dear all, > > I am working on (compound) function approximation with one input > variable using piecewise polynomial approximation with non-linear > joints. These approximations are implemented in hardware using Xilinx FPGAs. > > Example of such functions include: f(x)=sqrt(-ln(x)) or > f(x)=x*ln(x) where x = [0,1), which are used for Gaussian noise > generation (Box-Muller method) and Entropy calculation > respectively. > > Does anyone know any other real-life applications where compound > functions need to be approximated? sqrt(1/x) is used so often that more than one modern cpu contains built-in lookup tables to generate a good starting point for a NR iteration. > My second question is on the function f(x)=sqrt(-ln(x)) over x = > [0,1). This function is highly non-linear and approaches infinity > as x gets close to zero. This requires floating point > implementation (due to the large polynomial coefficients, which I > want to avoid). Are there any transformations I am apply to the > function to decompose it 2 or more functions that are more linear? > (Note that ln(x) is also highly non-linear over x = [0,1)) My first guess would be to look for some kind of rational approximation, even if this does require a final division. Terje -- - <Terje.Mathisen@hda.hydro.com> "almost all programming can be viewed as an exercise in caching"Article: 61784
qlyus, Yes. I can do that. Initial samples from the very first lots of silicon required a Vccint of 1.65 volts due to a design issue (check with your FAE to read the errata list for the ES parts). This was more than two years ago, now. This issue was addressed (fixed) long before we started shipping production parts. Since 1.65 volts is allowed per the absolute maximum specifications, and the parts were tested at these conditions, we could ship them as ES, and be assured that they would meet all applicable specifications. Please be certain that the board and part you have is from this early lot, as it will be marked with the "ES" marking, rather than the standard production marking. I am assuming this is a ML300 board, not a ML3000.... Austin qlyus wrote: > The core voltage on Xilinx Eval board ML3000 is 1.65V, according to > both schematic diagram and user's guide. It is not 1.5V as datasheet > says. Can somebody shed light on why? > > Thanks > > -qlyusArticle: 61785
Vinh Pham wrote: >>Interesting theoretical enterprise, but I really don't see the point. >> >> > >Someone just had a rare situation where they couldn't use a frame buffer. >You can think of it as an intellectual exercise :_) > > > >>I remember quite some years ago talking to a guy who had invested millions >> >> >of $ in developing > >Hahaha no wonder he refused to believe you. Sort of like when you buy a >crappy product, but you make yourself believe it's great, because of all the >money you spent on it. > >Did E&S's vector display draw only outlines of spheres, or shaded? Shading >with x-y vectors doesn't sound too fun. > > Oh, no, it painted them in very nicely. I don't remember whether it had a variable-width electron beam. They use this in the Rediffusion flight simulators and some other gear that I think had E&S image generators at the end of the processing chain. It looked much like Gouraud shading. Yes, that's why the thing cost several hundred K $. >What do you think was the main reason why people switched to pixel/raster? >Simplicity? Scales better? > > Plain cost. Imagine how insanely difficult it would be to have a color CRT with a variable beam width, able to deflect from one side of the screen to the other in a couple of uS, and maintain focus and purity while doing all that! Then, you need a geometry engine and have to solve all the occlusion and clipping problems while flying through the graphics data base one time only. With raster, you can push a lot of that work into the logic such that it all gets sorted out when the most foreground pixel is rewritten. With vector, you better not write an occluded background mark, because the CRT can't erase what it has already drawn. Larger, faster, cheaper memory made raster POSSIBLE! When E&S designed this stuff, you just couldn't do read-modify- write cycles fast enough to make a usable raster system without making something like a 1024-bit wide memory word, and doing all the read-modify-write work at 1024-bit word width. There actually were some late 1970's imaging systems that did this, they cost about $3 million per viewport and filled 5 6-foot rack cabinets. Obviously, only for the absolute highest-end flight simulator systems and such. JonArticle: 61786
Martin Euredjian wrote:
"Jon Elson" <jmelson@artsci.wustl.edu> wrote:
I guess you are talking about raster-scan displays without a pixel to
pixel
frame buffer behind it, and not about vector-drawing displays (like an
oscilloscope in X-Y mode).
Interesting theoretical enterprise, but I really don't see the point.
And you wouldn't outside of a contextual reference frame that allowed you to
understand where/why this might be important. It's a very narrow field of
application. Not mainstream at all.
Well, I'm still not sure I understand it, after reading all the above. The reason for
this is to convert from one video fomat (HD broadcast?) to another (high-end
computer LCD monitor - DVI) without introducing a one (or more) frame delay?
But, apparently, you ARE forced to delay the 2nd field, to make it show on a
non-interlaced display.
Or, do the different scan rates come into play, as the output frame rate has no
relationship to the input frame rate?
Jon
Article: 61787Peter's: solution for 48 bits: 2 BlockRAMs, 16 LUTs BlockRAM tcko + 2 levels carry chain John's solution for 30 bits: Resources: 46 LUTs (giving him 1 LUT per CYAdd bit) Delay: 2 levels LUTs + 3 levels carry chain John_H's solution for 31 bits (mine, at end): Resources: 41 LUTs Delay: 3 levels LUTs + 2 levels carry chain "Peter Alfke" <peter@xilinx.com> wrote in message news:3F870649.447B1CA3@xilinx.com... > John, just to be contrary: > Remember my suggestion of using a 4K x 4 dual-ported BlockROM. So it can > take 24 inputs and generate two 4-bit outputs that then have to be > combined externally. On two BlockROMs you can have 48 inputs and then > combine 4 sets of 4 inputs in one or two CLBs. Fast and simple, but > needs a trigger clock, since BlockROMs are synchronous. > > Peter Alfke, Xilinx Applications See original post for John's earlier comments as well as my own. In John's form of ASCII art is the 3-input LUT form of a 31 bit adder that won't work for 32 bits wihtout adding a bit of extra junk but is a more common need. - John_H ___ 0-| F | ___ 0-| A |-1-----1-| |-2-----+ 0-|_3_|-0-----0-| * |-1---+ | ___ +---1-| |-0-+ | | 0-| F | | +-0-|___| | | | 0-| A |-1-+ | | | | | 0-|_3_|-0---+ 0 | | | ___ 0-----------------+ | | +-2-| C | ___ | +---1-| Y |-3-------+ 0-| F | ___ +-----0-| A |-2-----+ | 0-| A |-1-----1-| |-2-------2-| d |-1---+ | | 0-|_3_|-0-----0-| * |-1-------1-| d |-0-+ | | | ___ +---1-| |-0-------0-|___| | | | | 0-| F | | +-0-|___| | | | | | 0-| A |-1-+ | | 0 | | | | 0-|_3_|-0---+ 0 | | | | | 0-----------------+ | | | | | 0---------------------------------+ | | | | ___ | | | | 0-| F | ___ | | | | 0-| A |-1-----1-| |-2-----+ | | | | 0-|_3_|-0-----0-| * |-1---+ | | | | | ___ +---1-| |-0-+ | | | | | | ___ 0-| F | | +-0-|___| | | | | | | +-3-| | 0-| A |-1-+ | | | | | | | +---2-| C |-4 0-|_3_|-0---+ 0 | | | ___ | +-----1-| Y |-3 0-----------------+ | | +-2-| C | +-------0-| A |-2 ___ | +---1-| Y |-3---------3-| d |-1 0-| F | ___ +-----0-| A |-2---------2-| d |-0 0-| A |-1-----1-| |-2-------2-| d |-1---------1-| | 0-|_3_|-0-----0-| * |-1-------1-| d |-0---------0-|___| ___ +---1-| |-0-------0-|___| | 0-| F | | +-0-|___| | 0 0-| A |-1-+ | | 0 | 0-|_3_|-0---+ 0 | | 0-----------------+ | | 0---------------------------------+ | 0---------------------------------------------------+ LUT count: 16 12 8 5 = 41 * The 2bit+2bit+1bit LUTS (0-7 result) are implemented as 3 levelsof logic implemented with 3-input LUTs.Article: 61788
...oops. Mine was 45 LUTs. 16 luts in the second stage, not 12. Delays stand as indicatedArticle: 61789
From a silicon-area efficiency the BlockRAM approach loses, for two BRAMs occupy as much area as 24 CLBs = 192 LUTs. But since this is not an a la carte restaurant where you have the option to pay only for what you use, the BlockRAM can sometimes be considered free, if nothing else needs it. Who said choices were easy... Peter Alfke ================================== John_H wrote: > > Peter's: solution for 48 bits: > 2 BlockRAMs, 16 LUTs > BlockRAM tcko + 2 levels carry chain > John's solution for 30 bits: > Resources: 46 LUTs (giving him 1 LUT per CYAdd bit) > Delay: 2 levels LUTs + 3 levels carry chain > John_H's solution for 31 bits (mine, at end): > Resources: 41 LUTs > Delay: 3 levels LUTs + 2 levels carry chain > > "Peter Alfke" <peter@xilinx.com> wrote in message > news:3F870649.447B1CA3@xilinx.com... > > John, just to be contrary: > > Remember my suggestion of using a 4K x 4 dual-ported BlockROM. So it can > > take 24 inputs and generate two 4-bit outputs that then have to be > > combined externally. On two BlockROMs you can have 48 inputs and then > > combine 4 sets of 4 inputs in one or two CLBs. Fast and simple, but > > needs a trigger clock, since BlockROMs are synchronous. > > > > Peter Alfke, Xilinx Applications > > See original post for John's earlier comments as well as my own. In John's > form of ASCII art is the 3-input LUT form of a 31 bit adder that won't work > for 32 bits wihtout adding a bit of extra junk but is a more common need. > > - John_H > > ___ > 0-| F | ___ > 0-| A |-1-----1-| |-2-----+ > 0-|_3_|-0-----0-| * |-1---+ | > ___ +---1-| |-0-+ | | > 0-| F | | +-0-|___| | | | > 0-| A |-1-+ | | | | | > 0-|_3_|-0---+ 0 | | | ___ > 0-----------------+ | | +-2-| C | > ___ | +---1-| Y |-3-------+ > 0-| F | ___ +-----0-| A |-2-----+ | > 0-| A |-1-----1-| |-2-------2-| d |-1---+ | | > 0-|_3_|-0-----0-| * |-1-------1-| d |-0-+ | | | > ___ +---1-| |-0-------0-|___| | | | | > 0-| F | | +-0-|___| | | | | | > 0-| A |-1-+ | | 0 | | | | > 0-|_3_|-0---+ 0 | | | | | > 0-----------------+ | | | | | > 0---------------------------------+ | | | | > ___ | | | | > 0-| F | ___ | | | | > 0-| A |-1-----1-| |-2-----+ | | | | > 0-|_3_|-0-----0-| * |-1---+ | | | | | > ___ +---1-| |-0-+ | | | | | | ___ > 0-| F | | +-0-|___| | | | | | | +-3-| | > 0-| A |-1-+ | | | | | | | +---2-| C |-4 > 0-|_3_|-0---+ 0 | | | ___ | +-----1-| Y |-3 > 0-----------------+ | | +-2-| C | +-------0-| A |-2 > ___ | +---1-| Y |-3---------3-| d |-1 > 0-| F | ___ +-----0-| A |-2---------2-| d |-0 > 0-| A |-1-----1-| |-2-------2-| d |-1---------1-| | > 0-|_3_|-0-----0-| * |-1-------1-| d |-0---------0-|___| > ___ +---1-| |-0-------0-|___| | > 0-| F | | +-0-|___| | 0 > 0-| A |-1-+ | | 0 | > 0-|_3_|-0---+ 0 | | > 0-----------------+ | | > 0---------------------------------+ | > 0---------------------------------------------------+ > > LUT count: > 16 12 8 5 = 41 > > * The 2bit+2bit+1bit LUTS (0-7 result) are implemented as > 3 levelsof logic implemented with 3-input LUTs.Article: 61790
"Jon Elson" wrote: >Well, I'm still not sure I understand it, after reading all the above. Because of the nature of the work I can't get into the sort of detail that would paint the whole picture for you. I apologize for that. One way to look at it might be from the point of view of resources, data rates, etc. As you hike up in resolution/frame rate (say, 4K x 4K at 60 frames per second, which is what I'm working on) you need some pretty massive frame store widths to be able to slow things down to where the processing is manageable. I was looking into the idea of not having to add yet another frame buffer for something as "simple" as drawing very basic graphic primitives (let's just call them cursors used to mark things). If this could be done in real time, as the actual display data is being output it would/could make an important difference in the design. I also have a requirement to have a 1 to 1 correspondence between input image and the corresponding sampled data which will appear on screen as these graphic primitives. No big deal. The display data actually goes to another processor at the same time it hits goes to a display system. If you are rendering your graphics to a separate frame buffer you will have to add one more frame of delay to the output image in order to guarantee coincidence. The memory required is not as much of an issue as the added frame delay. I truly can't get into it much farther than this. Again, just a look-see for a better way to do it in real time. I'm already doing it in real time. So, I know it is possible. Just looking for a better way, if it existed and was publicly available. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Martin Euredjian To send private email: 0_0_0_0_@pacbell.net where "0_0_0_0_" = "martineu"Article: 61791
john.l.smith@titan.com (John) wrote in message news:<5b9931fd.0310101049.45df7d20@posting.google.com>...
<lots of stuff, prolly too much, snipped>
Correction/amendment to (30,5) counter (6 CLBs):
___
0-| F |
0-| A |-1-------+
0-|_3_|-0-----+ |
___ | | ___
0-| F | | +-1-| F |
0-| A |-1-----|---1-| A |-2-----------+
0-|_3_|-0-+ +-|---1-|_3_|-1---------+ |
___ | | | ___ | | ___
0-| F | +-|-|---0-| F | | +--2-| |
0-| A |-1---+ +---0-| A |-1--+ +----1-| C |
0-|_3_|-0---------0-|_3_|-0--|-----------0-| Y |
| ___ | A |
+--1-| F | | d |-3----+
+---1-| A |--2-| d |-2---+|
| +-1-|_3_|--1-| |-1--+||
| | +-0-|___|-0-+|||
| | '0'--+ | ||||
| | 0 ||||
0---------------------------|-|--------------+ ||||
___ | | ||||
0-| F | | | ||||
0-| A |-1-------+ | | ||||
0-|_3_|-0-----+ | | | ||||
___ | | ___ | | ||||
0-| F | | +-1-| F | | | ||||
0-| A |-1-----|---1-| A |-2-|-|-------+ |||| ___
0-|_3_|-0-+ +-|---1-|_3_|-1-+ | | |||| | |
___ | | | ___ | | |||+-3-| |
0-| F | +-|-|---0-| F | | | ||+--2-| C |
0-| A |-1---+ +---0-| A |-1---|-----+ | |+---1-| Y |-4
0-|_3_|-0---------0-|_3_|-0---|---+ | | +----0-| A |-3
___ | | | | | d |-2
0-| F | | | | | | d |-1
0-| A |-1-------+ | | | | +----3-| |-0
0-|_3_|-0-----+ | | | | | |+---2-| |
___ | | ___ | | | | ||+--1-| |
0-| F | | +-1-| F | | | | | ___ |||+-0-|___|
0-| A |-1-----|---1-| A |-2---|-+ | | +--2-| C |-3-+||| |
0-|_3_|-0-+ +-|---1-|_3_|-1---+ | | +----1-| Y |-2--+|| 0
___ | | | ___ | +------0-| A |-1---+| |
0-| F | +-|-|---0-| F | +--------2-| d |-0----+ |
0-| A |-1---+ +---0-| A |-1--------------1-| d | |
0-|_3_|-0---------0-|_3_|-0--------------0-|___| |
| |
0 |
0--------------------------------------------+ |
0-----------------------------------------------------------+
LUT Count:
18 + 12 + 2 + 10 + 6 = 48
48 LUTs = 6 CLBs
Pipeline to taste...
Article: 61792
Tim,
Philip pointed out that my link was to your website, which I totally
missed. Got a good laugh out of Philip's pointing it out though!
Ray Andraka wrote:
> Depends on the HDL. VHDL certainly is. There is a link on my links
> page of my website to an example of some VHDL that does exactly this,
> which IIRC is a function call.
>
> Tim wrote:
>
> > Ray Andraka wrote:
> > > I'd rather use a function or procedure within the HDL so that the
> > > boolean expression is in the code and is used directly to generate
> > > the init value.
> >
> > Not possible for the HDL which is not a complete
> > programming language ;-)
>
> --
> --Ray Andraka, P.E.
> President, the Andraka Consulting Group, Inc.
> 401/884-7930 Fax 401/884-7950
> email ray@andraka.com
> http://www.andraka.com
>
> "They that give up essential liberty to obtain a little
> temporary safety deserve neither liberty nor safety."
> -Benjamin Franklin, 1759
--
--Ray Andraka, P.E.
President, the Andraka Consulting Group, Inc.
401/884-7930 Fax 401/884-7950
email ray@andraka.com
http://www.andraka.com
"They that give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
-Benjamin Franklin, 1759
Article: 61793RESET, INIT, PROG, DONE, TCK and TMS should have pullup resistors. Well, at least that's how I wired my XC4000 board :) do_not_reply_to_this_addr@yahoo.com (Sumit Gupta) wrote in message news:<ae680d56.0310100945.7e0c4801@posting.google.com>... > Hi > > I am trying to build a prototype Spartan-II board. > > 1. I am using a XC2S50 TQ144 part with all the mode pins tied to > VCCINT > 2. I am using Xilinx webpack 4.2 > 3. The parallel cable is from insight electronics (Model IJC-2) > 4. I am using a general purpose PCB and a QFP144 adapter from > adapters.com to connect the FPGA to the PCB. > > Now when I compile a simple test module and try to download the bit > file through Xilinx iMPACT tool, it gives an error saying > "Configuration failed: done pin did not go high". > > What could be the cause and how can I debug it. > > Thanks > SumitArticle: 61794
hi, i need to convert a jed file the abel-hdl,the file is for a lattice 1032e fpga,i tried with the utility jed2ahdl but it works only with small logic arrays,can someone help me?Article: 61795
> It looked much like Gouraud shading. Yes, that's why the thing cost > several hundred K $. Eeesh, shading with vectors. If there's a will, and a wallet, there's a way I suppose. > flying through the graphics data base one time only. With raster, you > can push a lot of that work into the logic such that it all gets sorted out when I guess it's like software defined radios where more and more of the analog processing gets pushed into the digital world, for the flexibility. > Larger, faster, cheaper memory made raster POSSIBLE! When E&S > designed this stuff, you just couldn't do read-modify-write cycles fast > enough to make a usable raster system without making something like a > 1024-bit wide memory word So back then vector graphics was quite viable, but they underestimated how quickly memory technology would advance. One of those fabled "paradigm shifts?" Thanks for the insights Jon. Looks like E&S is still chugging along, on the raster bandwagon http://www.xilinx.com/company/success/evans.htm --VinhArticle: 61796
I've got a beginner question concerning instantiating RAM inside a
Spartan II XC2S50 using WebPack. When attempting something like the
following:
type ram_array is array(0 to memsize-1) of std_logic_vector(width-1
downto 0);
the HDL synthesis reports using a 8-bit 1024-to-1 multiplexer. Is the
synthsizer trying to build the RAM out of flipflops? Should I build my
RAM out of ram32x1s type primitives instead?
-- Joe Lawrence
take out the ZZ's for email
Article: 61797Hi, I would like to create a macro which uses the routing resources that need to be reserved in my design. Do I have to do that manually in FPGA editor or there is another automatic way? Thanks NickelArticle: 61798
Im looking for an fgpa solution that will assist in creating special video effects, preferrably hdtv, but otherwise standard video its possible standard video boards will do these functions, but Id like more access into registers, etc as eval kits seem to have. are there any popular video processing kits? thanks!Article: 61799
<nickel> wrote: > I would like to create a macro which uses the routing resources that need to be reserved in my design. > Do I have to do that manually in FPGA editor or there is another automatic way? Can you provide more information? Why is it that you want to include routing in your macro? An RPM is relatively easy to generate. And you can use various constraints to ensure that some of the routing is done per your requirements. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Martin Euredjian To send private email: 0_0_0_0_@pacbell.net where "0_0_0_0_" = "martineu"
Site Home Archive Home FAQ Home How to search the Archive How to Navigate the Archive
Compare FPGA features and resources
Threads starting:
Authors:A B C D E F G H I J K L M N O P Q R S T U V W X Y Z