- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how could i write this code without clk signal,any suggest is very helpful, thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you say sum( = summary )of an array.
how do you specify its timing without clk. why you don't like to use clk? using clk is almost necessary for FPGA development.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
actually i just want y=p(0)+p(1)+.....p(n-1) (p(i) is element of the array) without clk signal, because in my example i have,y=p(0)+p(1) without clk singal,i try and it work, now i extend for n-1 element, that's all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's no problem of VHDL syntax, you can write a for loop with a variable for the sum.
If you are asking about hardware synthesis, you are creating a number of cascaded adders so the propagation delay becomes respectively slow.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
so how to prevert the propagation delay ??? i need it quickly enough
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can't prevent propagation delay, you should design aware of it, e.g. by using synchronous pipelined topology.
It's no clear what you want to achieve. At present it's just a general VHDL syntax question, not related to hardware design.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
well,i have a project about FIR adaptive, and i need to add all products in filter together to produce the output,i simualte in matlab and use hdl coder to convert vhdl code,then implement in hardwave(not right now,maybe next week )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HDL Coder will give you a pipelined output, and you can control how many pipeline stages there are. Usually you want a register after each adder stage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- HDL Coder will give you a pipelined output, and you can control how many pipeline stages there are. Usually you want a register after each adder stage. --- Quote End --- i'm writing in quartus II,my code based on "DSP with FPGA" and the author using lpm_mult ,i don't know how it work???,he just use library lpm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have across some notes in this book (by Meyaers if I remember correctly). It seems written by software professor who doesn't know much about fpgas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I have across some notes in this book (by Meyaers if I remember correctly). It seems written by software professor who doesn't know much about fpgas --- Quote End --- I don't agree. The book isn't particularly focussed on FPGA design methodology, but the FIR examples in meyer-baese digital signal processing with field programmable gate arrays are mostly pipelined. --- Quote Start --- i'm writing in quartus II,my code based on "DSP with FPGA" and the author using lpm_mult ,i don't know how it work???,he just use library lpm . --- Quote End --- Which FIR topology and example design are you referring to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I have across some notes in this book (by Meyaers if I remember correctly). It seems written by software professor who doesn't know much about fpgas --- Quote End --- do you remember the name of book,he writes about multi_pipeline ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wouldn't worry about book names.
If a book says add all terms as y = p0+p1+p2+...+pn then this is direct algebra that is not helpful for fpga design especially if number of taps is too large because it implies many adders in parallel without any reference to a sampling clock edge. It also assumes all input stages are available at same time in parallel while in many cases the input is a stream of incoming samples.. In FPGAs and depending on fmax you will need to add in stages(cascade or ladder) with each stage registered before going to next. There is no need to worry about latency of few samples as filters have intrinsic delay anyway(group delay)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
well,i just want to make adder quickly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- I don't agree. The book isn't particularly focussed on FPGA design methodology, but the FIR examples in meyer-baese digital signal processing with field programmable gate arrays are mostly pipelined. Which FIR topology and example design are you referring to? --- Quote End --- about adaptive FIR,he just used filter with order=2,i want more order so that y(n)=p(0)+p(1)+....p(n)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if i write :
sum1<=sum0+produce; sum2<=sum1+produce; output<=sum2; is this pipeline adder ???- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- if i write : sum1<=sum0+produce; sum2<=sum1+produce; output<=sum2; is this pipeline adder ??? --- Quote End --- If it is inside a clocked process, yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- If it is inside a clocked process, yes. --- Quote End --- when i use hdl coder to convert vhdl without pipeline,so is it very slow if sum1 throught sum 50 ???? anyway, i want to know x and 1/x in vhdl

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page