EmbDev.net

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


von tamara (Guest)


Rate this post
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

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
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
von tamara (Guest)


Rate this post
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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.