UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor shilpa@0484
Visitor
355 Views
Registered: ‎02-18-2019

Not getting output for CORDIC program implemented

Jump to solution

Given below is program to for unscaled sine value generation using CORDIC .

There is no errors in my program but still getting output as illogical value.

I have attached program code and testbench i have written as well as output waveform i am getting.

 

Kindly check and tell suggestions

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
308 Views
Registered: ‎05-31-2017

Re: Not getting output for CORDIC program implemented

Jump to solution

HI shilpa@0484 ,

It seems that there is another issue in TB as the clock period is 10ns and the signals will not get initialized in DUT if the start signals toogles just after 5ns. So, increase the start signal toogle time from 5ns to 15ns by below modifications and see if it helps

initial begin
// Initialize Inputs
clk = 1'b0;
start = 1'b1;
angle = 0;
#15 start=1'b0;

0 Kudos
4 Replies
Moderator
Moderator
330 Views
Registered: ‎05-31-2017

Re: Not getting output for CORDIC program implemented

Jump to solution

Hi shilpa@0484 ,

You have specified the signal start to be 1 after 5 ns due to which the else condition will not get triggered. So, modify the code as below in TB and check if it helps

initial begin
// Initialize Inputs
clk = 1'b0;
start = 1'b1;
angle = 0;
#5 start=1'b0;

0 Kudos
Visitor shilpa@0484
Visitor
325 Views
Registered: ‎02-18-2019

Re: Not getting output for CORDIC program implemented

Jump to solution

No it didn't work

Signals are active low only

 

0 Kudos
Moderator
Moderator
309 Views
Registered: ‎05-31-2017

Re: Not getting output for CORDIC program implemented

Jump to solution

HI shilpa@0484 ,

It seems that there is another issue in TB as the clock period is 10ns and the signals will not get initialized in DUT if the start signals toogles just after 5ns. So, increase the start signal toogle time from 5ns to 15ns by below modifications and see if it helps

initial begin
// Initialize Inputs
clk = 1'b0;
start = 1'b1;
angle = 0;
#15 start=1'b0;

0 Kudos
Visitor shilpa@0484
Visitor
298 Views
Registered: ‎02-18-2019

Re: Not getting output for CORDIC program implemented

Jump to solution

Thanks for support!!!!!!!!!

0 Kudos