Forum Discussion
Altera_Forum
Honored Contributor
11 years agosorting 4 numbers with controller and datapath
hi i'm working on a machine that sorts 4 numbers with 4 bits. i can't understand why it doesnt work. i made it by ussing "bubble sort" technique all files here include an image of the machin...
Altera_Forum
Honored Contributor
11 years agoan easy way is to address four locations (out of 16) with the numbers serially and write value 1 there then read them back.
e.g. if address sequence (A,B,C,D] is 11, 15,0,1 then addresses 0,1,11,15 will be set to 1, others 0 read back from 0 to 15 min will be first address with 1 and so on