Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17253 讨论

if Clock 50MHz, how many ns used is appropriate for behavior vhdl ?

Altera_Forum
名誉分销商 II
3,328 次查看

if Clock 50MHz, what is the maximum ns in after X ns can be used is appropriate for behavior vhdl ? 

 

for example http://www.people.vcu.edu/~rhklenke/tutorials/vhdl/modules/m12_23/sld006.htm
0 项奖励
9 回复数
Altera_Forum
名誉分销商 II
1,788 次查看

None. After is not synthesisable, it is for behavioural modelling in simulation only. It is ignored for synthesis. 

 

Why do you want a delay anyway? if you're trying to delay a signal to get something to work, the design is fundamentally wrong.
0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

i do not know how long of my algorithm running in FPGA, so i afraid that i am not fast enough send data through ethernet before one clock cycle finish

0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

But you know how long it will take - 1 clock cycle (though that seems rather short for "an algorithm"). So why do you need a delay? delays need to be in numbers of clocks, not fixed time delays. Digital circuits do not work like that.

0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

once receive a message, i would like to send immediately while algorithm running at the same time

0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

I dont quite understand. If you just want to send a reply in parrallel to the algorithm, why cant you just do that, and then send the data from the algorithm when it finishes?

0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

because data are continously receive like a flow or stream and then algorithm and send. sending ethernet frame occupy many cycles, i wish to make algorithm involve in it. actually i do not know how many average cycles of an algorithm occupy in FPGA chip,  

if can not do algorithm within cycles of sending ethernet header before send a payload, there is only one choice that do it sequentially which is to finish algorithm first then send ethernet frame 

 

is the clock cycle in ethernet frame 1/(50 * 10^6) = 0.00000002 = 20 ns ? if sending ethernet frame using 8 * 20ns, can an algorithm run within 8 * 20 ns?
0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

Timings on ethernet do not matter - you just get a chunk of data. Your algorthm takes N clock to complete (N is probbably going to be a fixed length) and then you send the data back to the host.

0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

how to know how many nanosecond of each VHDL statement? 

i would like to run algorithms partly using the rest of time in a cycle
0 项奖励
Altera_Forum
名誉分销商 II
1,788 次查看

you know the time, because of the clock speed. So an algorithm takes N (pipeline length) x clock period. Without a clock, you have no idea how "long" it will take.

0 项奖励
回复