Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A question about VHDL and simulation with modelsim

Status
Not open for further replies.

betal

Technical User
Jan 30, 2007
1
AR
Hi everybody, I'm working with Xilinx ISE and modelsim. My code has three processes. Two are synchronized with a global clock and the other is not.
That's what I do there(this is not code):

process 1 (synchronized through clk='1' and clk'event)

next_cnt<=cnt (cnt is a variable)

process 2 (synchronized through clk='1' and clk'event)

actual_cnt<=next_cnt (both are signals)

process 3 (not synchronized )

rdy_cnt<=actual_cnt


The problem is that when I see the value of rdy_cnt on modelsim it is half cycle delayed compared with
actual_cnt.

Hope someone can help me to understand it!!

 
Betal,

Are you sure that Actual_cnt is in the sensitivity list of process3 ?

The other thing that might be the case is delta cycle delay,
but if it is or not is hard to determine from the information you provided.

regards

jeandelfrigo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top