EmbDev.net

Forum: FPGA, VHDL & Verilog find the max value between a given inputs


Author: tamara (Guest)
Posted on:

Rate this post
0 useful
not useful
hi all
i need a vhdl code to find the max value from integer input where i have 
a four input ??
thanks a lot

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
tamara wrote:
> i need a vhdl code to find the max value from integer input where i have
> a four input ??
Did you read your question? Do you understand it?

What do you have as input?
What do you want as output?
(this two questions can easily be answered with a entity declaration)
And what should happen in between?

And then for those thinking one step further:
Is it just for simulation?
Or must the result be synthesizeable for/on hardware?
If so: what data rates do you have to achieve?

You see: I have 8 questions to you. Please answer them. Then maybe we 
can find a solution for your problem...

: Edited by Moderator
Author: tamara (Guest)
Posted on:

Rate this post
0 useful
not useful
Lothar Miller wrote:
> tamara wrote:
>> i need a vhdl code to find the max value from integer input where i have
>> a four input ??
> Did you read your question? Do you understand it?
>
> What do you have as input?
i have a 4 inputs every input has only one value such as
a => 100
b => 200
c => 300
d => 400
> What do you want as output?
i want to find max between a,b,c,d should find d <= 400
> (this two questions can easily be answered with a entity declaration)
> And what should happen in between?
> i think it some thing like comparator
> And then for those thinking one step further:
> Is it just for simulation?
yes
> Or must the result be synthesize-able for/on hardware?
> If so: what data rates do you have to achieve?
is it difficult to be implemented
>
> You see: I have 8 questions to you. Please answer them. Then maybe we
> can find a solution for your problem...
forgive me if i not clear my question in the beginning
and if i write and think aout not logic problem,you are our vhdl teacher 
and we definitely learn from you
thanks a lot

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.