FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6269 Discussions

Hai All, I m doing my project in FPGA SRAM based Ternary content addressable memory. How can I include ternary bit (don't care -x) during verilig and vhdl coding

Spk00
Beginner
1,059 Views
 
0 Kudos
2 Replies
ak6dn
Valued Contributor III
860 Views

'X' as a signal value is not supported in synthesis. Only '0' and '1' are.

So if you want to have a data element represent three unique states (0, 1, X) you need to use 2 bits and encode the values (ie, 00=>0, 01=>1, 1X=>X).

So however much memory you were planning on using, basically double that value.

0 Kudos
AnandRaj_S_Intel
Employee
860 Views

Hi Sisira,

 

X is Non-Synthesizable, Z is only synthesizable on IO pads.

One of the tasks of the designer is to provide correct reset sequences to bring the model into a known state, without 'x'.

 

Regards

Anand

0 Kudos
Reply