M
M. Norton
Guest
Good morning,
I'm working on a signals testbench for a receiver. I started putting together a cosine lookup table and some code to run an NCO based on a current setting of frequency.
As I was leaving work yesterday I started thinking that maybe I'm going about this backwards, and could I create a signal in real numbers? It has some advantages of being more straightforward and much easier to create more sophisticated signals than CW (or multiple additions of CW). However I seem to remember tinkering with this notion in the past and the major problem was finding out what the current time was.
Since time is a physical type in VHDL, I seem to remember that when it converts into a math type, it does so at its lowest physical quantized level, femtoseconds. Thus, it doesn't take a lot of time before femtoseconds overwhelm the integer type. I might be able to go straight to real but I'm going to lose precision.
Is there a simulator environment method of extracting the current simulation time in real type rather than using "now"?
Thanks,
Mark Norton
I'm working on a signals testbench for a receiver. I started putting together a cosine lookup table and some code to run an NCO based on a current setting of frequency.
As I was leaving work yesterday I started thinking that maybe I'm going about this backwards, and could I create a signal in real numbers? It has some advantages of being more straightforward and much easier to create more sophisticated signals than CW (or multiple additions of CW). However I seem to remember tinkering with this notion in the past and the major problem was finding out what the current time was.
Since time is a physical type in VHDL, I seem to remember that when it converts into a math type, it does so at its lowest physical quantized level, femtoseconds. Thus, it doesn't take a lot of time before femtoseconds overwhelm the integer type. I might be able to go straight to real but I'm going to lose precision.
Is there a simulator environment method of extracting the current simulation time in real type rather than using "now"?
Thanks,
Mark Norton