R
rickman
Guest
Geeze! There are times I wonder how I manage to live without full
time care! I chased the strangest bug and could not find it to save
my life. If it had been a snake...
The simulation was exactly what I wanted and I've been doing this a
long time, so I'm not accustomed to the chip not working just like the
simulation. I downloaded the design and things aren't working like
they should. The data from the 232 interface was not synching as if
it were not the correct rate. Putting a probe on the data shows it is
clocking way too fast, a bit is coming out at the rate of the 16x baud
clock! I brought out several timing strobes they were all over the
map, all two fast, but not even steady. More like the clock was
glitching all over the place...
To make a long story short... opps, too late for that... I eventually
read the compiler warnings. I had seen a warning earlier about
finding 9 feedback paths or words to that effect and that didn't quite
wake me up. It was complaining about the lack of signals in the
sensitivity list of a clocked process... or so I thought. Instead of
(rising_edge(clk)) I had used ('1' = clk). Aldec used the sensitivity
list without complaining and so it simulated perfectly. The real
world saw it differently... async logic running at top speed! No
wonder the chip was warmer than usual...
A couple of hours down the drain... yes, a couple of hours! I kept
adding debug points even though none of them made any sense.
Rick
time care! I chased the strangest bug and could not find it to save
my life. If it had been a snake...
The simulation was exactly what I wanted and I've been doing this a
long time, so I'm not accustomed to the chip not working just like the
simulation. I downloaded the design and things aren't working like
they should. The data from the 232 interface was not synching as if
it were not the correct rate. Putting a probe on the data shows it is
clocking way too fast, a bit is coming out at the rate of the 16x baud
clock! I brought out several timing strobes they were all over the
map, all two fast, but not even steady. More like the clock was
glitching all over the place...
To make a long story short... opps, too late for that... I eventually
read the compiler warnings. I had seen a warning earlier about
finding 9 feedback paths or words to that effect and that didn't quite
wake me up. It was complaining about the lack of signals in the
sensitivity list of a clocked process... or so I thought. Instead of
(rising_edge(clk)) I had used ('1' = clk). Aldec used the sensitivity
list without complaining and so it simulated perfectly. The real
world saw it differently... async logic running at top speed! No
wonder the chip was warmer than usual...
A couple of hours down the drain... yes, a couple of hours! I kept
adding debug points even though none of them made any sense.
Rick