Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can we write a test bench for tx_chain.v?

bench Test write
0
Posted

How can we write a test bench for tx_chain.v?

0

To write a test bench, you would need to set the interpolation frequency properly and if you wanted to use the CORDIC, that would have to be setup properly as well for the phase accumulator. You would then strobe your samples in at a rate of Fs where Fs is some fraction of the total clock speed and Fs*interp_rate = the clock rate. You then have to strobe every Fs to send your samples through the chain. You also need to assert the interpolator_strobe and sample_strobe on a consistent frequency basis – eg: once every 15 clock cycles. You can’t just randomly assert and de-asserts them. You have no frequency set. I believe this frequency should be the phase difference between samples of the CORDIC for each sample that goes in where 2^31^-1 is equal to 2*PI. You probably want to see a sine wave or some filtered signal – try a pulse train, {1, 0, 1, 0, …} or you can download the [source:gnuradio/branches/developers/zhuochen/simulations/burst_test/math_real.v math_real.v] module. The test b

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123