??? 09/20/07 20:04 Read: times |
#144845 - re: Thinking Hardware Responding to: ???'s previous message |
Russ Cooper said:
I was talking with a pal about all this yesterday and he said something like "oh, you can write 'for' loops and 'while' loops and everything in Verilog and the synthesizer will just figure it out". That sounds like exactly the kind of thinking that you are warning against. Actually, "for" loops used in synthesizable code are very useful in certain instances. You just have to know how the synthesizer will handle them. In some cases it's very easy to use a for loop to replicate a synchronous structure. "While" loops ... not so much. -a |