|
Re: Paramaterizing Case Statements
This question seems pretty much wrapped up, but I'll add one thing.
Because of dataflow, writing to a local in one location and reading for the case in another is usually not what you want. The local may well be read immediately, before you code writes to it. Wires don't do that. So to summarize, watch for race conditions and think in parallel when using local or global variables.
Greg McKaskle
|