cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
648 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

CORDIC waveform.jpg
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
601 Views
Registered: ‎05-31-2017

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;

View solution in original post

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

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
Highlighted
Visitor
Visitor
618 Views
Registered: ‎02-18-2019

No it didn't work

Signals are active low only

 

0 Kudos
Highlighted
Moderator
Moderator
602 Views
Registered: ‎05-31-2017

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;

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
591 Views
Registered: ‎02-18-2019

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

0 Kudos