Forum Discussion
Altera_Forum
Honored Contributor
10 years agoCondition when in vhdl code
Sorry for my bad english, I have a problem in my code: i use the function case x is when y => but instead of a value i would like to have something (>= Y) i don't know if it's possible bu...
Altera_Forum
Honored Contributor
10 years agoIndeed i have to simulate an electrocardiogram with 2 inputs (clk and hearts) and show the number of bpm with 8 leds (Very slow, slow, good1, good2,good3,good4, fast, very fast)
my clock is equal to 60 Hz and i use the value i want for hearts and my leds turn on according the number of bpm. I have key value : 45 bpm is slow, < 35 VS, 200 fast 210 VF, and good1,...,good4 are between 45 and 200 (almost equal). I had a previous code for 2 leds (slow and fast) but if i use the same process i have too many LE. How can I make it out ? I hope you understand everything because i don't speak english very well. Thanks