[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Icarus simulation help

From: Brian Padalino
Subject: Re: [Discuss-gnuradio] Icarus simulation help
Date: Thu, 28 Aug 2008 19:56:06 -0400

On Thu, Aug 28, 2008 at 5:07 PM, Sebastiaan Heunis <address@hidden> wrote:
> Brian
> Thanks again for the testbed file.  I see what phase_acc does now.
> When we do a downconversion, the initial phase that gets written to
> the FR_RX_PHASE_0 register is 0, right?  I just want to make sure of
> that and that the phase value repeats after about 16 clock cycles.  I
> would just like to know if you know of a good testbed tutorial around.
>  What I would like to do now is generate a sine wave at 20MHz, sampled
> at 64MHz and save this to a text file.  I would also like to save the
> phase values generated by phase_acc to a text file.  I then want to
> write a testbench for cordic.v with the incoming sine wave and phase
> values and save the output from the cordic to a text or datafile.  If
> you know how to access and read/write files in Iverilog, could you
> please just show me a line of code or two to do it?

Sure, but phase is pretty arbitrary anyway, right?

No need for all the files.  Just instantiate all the components you
want to test in the same testbench.  Then you have one test which
tests everything.

As for writing testbenches, Google really is your friend - or the GNU
Radio repository - or any sort of other examples.

I don't mind answering your questions, but you should give yourself
some credit and give it a shot.

> Thank you very much.

You're welcome.  Good luck.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]