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,062 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,119 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
Teacher
5,032 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.

Give Kudos to a post which you think is helpful and reply oriented.
Moderator
5,023 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

----------------------------------------------------------------------------------------------

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

Regards
Rohit
----------------------------------------------------------------------------------------------

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

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

## Re: A simulation waveform question

Hi @thakurr

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,996 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.

Give Kudos to a post which you think is helpful and reply oriented.
Highlighted
Moderator
4,984 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

----------------------------------------------------------------------------------------------

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

Regards
Rohit
----------------------------------------------------------------------------------------------

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

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

## Re: A simulation waveform question

@muzaffer

Regards

Rohit

Regards
Rohit
----------------------------------------------------------------------------------------------

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

Teacher
4,976 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?

Give Kudos to a post which you think is helpful and reply oriented.
9,120 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,900 Views
Registered: ‎03-31-2012