Hello again.
I want to understand something about CAM. Actually i'm using cyclone iii which have M9K memory blocks. So for my project as i described before, i firstly use a ram to store data. The addresses goes from 0 to 639 and my data is only 2 bits length. I reached to code a CAM but i have this two questions :
1) The output of CAM is one-hot so to get the encoded address 639 do i need a CAM of the size 640x2 ??? I'm really confused, because to store data i only used one block M9K why would i need more than that to get the address?? ( I need the encoded address not the one-hot one )
2) For my project it might be more than one address storing the same data but i got only the last one, so the CAM didn't solve my problem, because for my project many addresses will store the same data. So how to pass from one match to multi-match please?