Search the web
Sign In
New User? Sign Up
verilog · Verilog!
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Newbie question #1   Message List  
Reply | Forward Message #727 of 735 |
Stupid Question


I have not done any verilog coding in several years I hired a consultant to
get me back up to speed. He looked at my code and said this was bad:

Always @(posedge clk) begin

If (reset) begin

Cmd_ack<= 0;

End else begin

Cmd_ack<=0; //set default condition

Case (state)

SOME_STATE: begin

Cmd_ack<=1; //set high for one clock.

End

// other states

Endcase

End

End

I see code on opencores.org and such that sets a default condition like
above rather than making sure the cmd_ack is set in every case statement.
Does anyone know if the default like this OK for synthesizeable code?

Thanks
Trampas




Wed Jun 18, 2008 12:29 pm

trampas_stern
Offline Offline
Send Email Send Email

Forward
Message #727 of 735 |
Expand Messages Author Sort by Date

Hi all. I've done a fair bit of Abel HDL coding, but am trying to learn Verilog now. It's certainly different! First simple question: I haven't come across...
Michael Dunn
ambisonx
Offline Send Email
May 2, 2006
1:13 am

hii... can any ofu suggest solution for clearing an warnig in xilinx xst:1290 while synthesising a codein verilog... thanks, arun. ... Talk is cheap. Use...
arun prasath
chipbrain2003
Offline Send Email
May 2, 2006
4:20 am

Those statements wouldn't work, the right hand side values will be treated as ASCII and converted into bitstring and then assigned to the left hand side value....
ngsayjoe
Offline Send Email
May 4, 2006
6:30 am

I have not done any verilog coding in several years I hired a consultant to get me back up to speed. He looked at my code and said this was bad: Always...
Trampas
trampas_stern
Offline Send Email
Jun 18, 2008
12:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help