How can we write a test bench for tx_chain.v?
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
- Can you use a calculator when taking the job knowladge test? Is there spelling check on the computer program when you write the essay test?
- Can you give me a rough idea of how much it will cost to have CheckSum write the in-circuit test programs for my assemblies?
- What is the maximum length of the test case we can write?