Electronics > FPGA
Xilinx ISim: Display I2C as hex in simulations?
Pack34:
I have a feeling that I'm going to be out of luck here, but...
I'm trying to get back up to speed with FPGAs and I have some code running. In my testbench I have some I2C events going on and was wondering if there's a way to decode the I2C transmission to display what's going on in hex similar to what my Agilent does when I physically probe something.
I could actually put it on a dev board and probe what's physically happening but I want to get more comfortable with simulating.
Does anyone have some insight into this, or am I stuck with doing it by eye?
EDIT:// I'm using Xilinx ISE, and using VHDL.
commie:
Hi,
You want some sort of I2C probe, which decodes the I2C activity and displays it in hex bytes on a e.g., 16x2LCD? If that's correct, then you are looking at a separate project in itself for a micro-controller coupled with a good compiler which supports I2C commands.
Pack34:
I was trying to figure out if there was a way to decode it directly in ISim. I have a physical I2C decoder on my desk but I was hoping that there was a way to display it in the simulator.
I know how to select a bus and change how it's displayed, just wasn't sure if there was a way to do decode it on a single SDA line. Unfortunately, it looks like I'm out of luck.
Neilm:
Have you thought about writing an I2C decoder in the simulator? Then you could put put into the ISim waveform and set the radix to hex. Bingo
Pack34:
--- Quote from: Neilm on September 11, 2015, 08:00:50 pm ---Have you thought about writing an I2C decoder in the simulator? Then you could put put into the ISim waveform and set the radix to hex. Bingo
--- End quote ---
I have not. Can you point me in the right direction on where to get started with this? I'm using VHDL.
Navigation
[0] Message Index
[#] Next page
Go to full version