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
Did you mean:
5,051 Views
Registered: ‎04-18-2015

## A simulation waveform question

Can anyone tell me what is the answer for this question? I am not sure whether it is A2 or A3.

Best wishes

1 Solution

Accepted Solutions
9,108 Views
Registered: ‎04-18-2015

## Re: A simulation waveform question

Thanks for the help.

I did a simulation today. However, I found out that the A2 or A3 is dependent on where does the first flip-flop get its input.

If it gets its input from the testbench directly, the waveform looks like A2. See signal a,b,c, ignore d:

If it gets its input from the previous flip-flop, the waveform looks like A3. Assume a is the previous flip-flop, see signal b,c,d:

Anyone know why?

Best wishes

9 Replies
Highlighted
Teacher
5,021 Views
Registered: ‎03-31-2012

## Re: A simulation waveform question

@d4223738 we really don't want to do your homework for you. But I have a clue for you: what would the waveform be at the wire between Q of the first flop and D of the second flop? If you can answer this, then ask what is the waveform at A again.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Moderator
5,012 Views
Registered: ‎09-15-2016

## Re: A simulation waveform question

Answer should be A2 as A should propagate till D with the gap of one clock cycle.

Regards

Rohit

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

Regards
Rohit
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

5,000 Views
Registered: ‎04-18-2015

## Re: A simulation waveform question

Hi @thakurr

Thanks for the reply.

I am wondering do I need to consider timing violation?

Input A goes high at the same time the clock goes high.

Best wishes

Teacher
4,985 Views
Registered: ‎03-31-2012

## Re: A simulation waveform question

@thakurr are you sure? I think it is worth firing up a simulator and checking.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Moderator
4,973 Views
Registered: ‎09-15-2016

## Re: A simulation waveform question

It is worth writing a test bench and simulate. Here is the wave form which hope clears your doubt.

Also timing voilation should not be ignored anyway. Timing engine in Vivado make sure that your design is perfectly analyzed and all the hold and set up requirement are strongly met.

Regards

Rohit

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

Regards
Rohit
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

Moderator
4,971 Views
Registered: ‎09-15-2016

## Re: A simulation waveform question

@muzaffer

Thank you for your advice. It was actually worth doing.

Regards

Rohit

Regards
Rohit
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

Teacher
4,965 Views
Registered: ‎03-31-2012

## Re: A simulation waveform question

@thakurr can you please show the waveform on the net between Q of first flop & D of second flop in addition to A &  C nets?

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
9,109 Views
Registered: ‎04-18-2015

## Re: A simulation waveform question

Thanks for the help.

I did a simulation today. However, I found out that the A2 or A3 is dependent on where does the first flip-flop get its input.

If it gets its input from the testbench directly, the waveform looks like A2. See signal a,b,c, ignore d:

If it gets its input from the previous flip-flop, the waveform looks like A3. Assume a is the previous flip-flop, see signal b,c,d:

Anyone know why?

Best wishes

Teacher
4,889 Views
Registered: ‎03-31-2012