??? 06/18/08 17:32 Read: times |
#156009 - Thanks for the "spiritual guidance" ... Responding to: ???'s previous message |
This was exactly what I was looking for, namely, a simple answer to the question of how to specify a value in decimal form so people could understand it easily.
Actually, I've had to rely on a number of texts on the subject and, though they have specified a pretty ugly sort of type-conversion that they have in common, their syntax is apparently unpalatable to ModelSim. I've snagged a few items from the www, and they all point to the same method, which the ISE doesn't seem to like. My conceptions of what the language will/won't do are not totally preconceived, but, rather, are the product of searching through a significant number of texts, including all the ones available at the university library (and those available through interlibrary loan) and a few that I've actually bought (Ashenden's VHDL guide for Designers, for example, and that initial book I got over a decade ago when I took the course that Cypress offered. I'm quite sure that none of them discuss the use of decimal numbers. Perhaps that's because it's "obvious" but it's not ... at least not to me. Since it's always served, so long as I stick to HEX or binary specification of, say, boundary values, etc. It hasn't been much of a problem for me, but I have lamented that each time I did that, I had to comment the code to indicate what the decimal value was. If you say that ModelSim will understand what I mean (and I will verify that I understand you via simulation) I should just be able to specify a terminal count in an otherwise binary counter as "999999" and have it transition to zero at that point. I had always considered that it might be one of those "assume the obvious" cases, but, since I didn't find anything expressly stating how to specify decimal values, I didn't do it. I simply don't believe in doing what the doc's don't say, explicitly, is valid. Perhaps I've simply used the wrong references. RE |