Jun 27, 2007 #1 A appu1985 Member level 2 Joined Jun 10, 2007 Messages 52 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,627 How can we code in verilog to find a minimum value in a array .
Jun 28, 2007 #2 A arnoud Newbie level 5 Joined Jun 17, 2007 Messages 9 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,327 Same way as you would do it in C (or whatever language you use): - use a counter to address the whole array one by one: at seach start set register to max value, and coutner to 0. for every data read: - compare output with a register - if lower, load register with read value Hope this helps.
Same way as you would do it in C (or whatever language you use): - use a counter to address the whole array one by one: at seach start set register to max value, and coutner to 0. for every data read: - compare output with a register - if lower, load register with read value Hope this helps.
Jun 28, 2007 #3 A appu1985 Member level 2 Joined Jun 10, 2007 Messages 52 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,627 Its ok..but if u could show me this with the help of some example... pls