04-15-2019 05:09 AM
04-15-2019 05:14 AM - edited 04-15-2019 05:15 AM
' please if anyone has idea of verilog code please help.
This is not how this forum works, providing RTL codes for homeworks/class-exercises/projects. These are tasks you should be trying to do yourself.
1. Show what you have done.
2. Where exactly you are stuck and where do you need help.
3. Provide all prossible info and illustrations.
4. Ask specific questions.
04-15-2019 05:38 AM - edited 04-15-2019 05:40 AM
Quite apart from what @dpaul24 has said - you need to provide a whole lot more information.
What does time to digital conversion have to do with thermometer to binary conversion? What thermometer is this? Have you got (for example) a 120MXS watching a standard mercury thermometer, and you want to perform image segmentation, OCR the thermometer scale, and pull the temperature from that? Or maybe you've got a BAE TWV1912 and you're using that to measure temperature? Or a lemon-based battery connected to a resistor, with the voltage (measured on the XADC) giving you a temperature? Or an internal ring oscillator in the FPGA that's acting as a thermometer? Or something more sensible, like a TMP100? How is all this connected to the FPGA? What FPGA is it? What board are you using? What sort of binary output are you expecting?
04-15-2019 07:00 AM
This comes up every few years,
Its an interesting question, as it depends how far you want to tak eit.
At its basics, its a big Look Up Table ( LUT )
or you look for the highest set bit of the thermonitor, and use that to set your output,
many ways, all have pros and conns,
which if I was to set this, is more what I'm looking for the student to have thought about than the actual implimentatoin.
04-16-2019 01:46 AM
I remember doing a 16 bit thermometer code to 4 bit binary converter at 200MHz in Virtex-2 when they were first released. I used a carry chain to find the first bit set, then LUTs to convert that to binary. The carry chain was hand placed using RLOCs in VHDL.