Forum Discussion
Altera_Forum
Honored Contributor
12 years agosorter in vhdl
hi every one i want avhdl code to sort integer input ascending if i have an array such as 1,8,9,7,2 the out put will be such as 1,2,7,8,9 i search a lot but didn't find any code that he...
Altera_Forum
Honored Contributor
12 years agoYou need to run address from 0 to 1023 after you write all your data.
currently you are reading all addresses when they are still zeros(not updated) except last one. so you simulation is ok but you need more work to read all addresses and ignore any address that has zero data.