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 ago --- Quote Start --- do you have a look to 2nd picture i need to get the output trigraph alone because i will use it how can i do it?? --- Quote End --- if you pick up only those write addresses for read as well then it defeats the purpose as we want to read in the full order of addressing. If it slow you can use faster rate. The alternative to be considered is this: If your data set is small then you can implement your memory as registers in the fabric (hence addressable all at any time), I mean a 2D register, each register set will have index (as address e.g. 0 ~ 15 ). Once you write to these registers you can check nonzero data from index zero to 15 in one clock and then decide to read out only those with nonzero data in succession.