strange problem when i use when and otherwise
See original GitHub issuestrange problem happened that when condition is fulfilled, expression 1 executed but expression 2 also executed.
when(condition) {
expression 1
} .otherwise{
expression 2
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
strange problem when i use when and otherwise #1097 - GitHub
strange problem happened that when condition is fulfilled, expression 1 executed but expression 2 also executed. when(condition) ...
Read more >When program run correctly while debugging but otherwise not?
Sometimes I encouter such strange situations that the program run incorrectly while running normally and it will pop-up the termination dialog, ...
Read more >Why do I feel “Weird” or “Off” | JED - The Jed Foundation
We've all been there. It's completely normal not to feel like ourselves from time to time and having an “off” or “weird” day...
Read more >Early signs and diagnosis of dementia - SCIE
Recognition and coordination difficulties A person showing early signs of dementia may put everyday things in unusual places (for example, a loaf of...
Read more >Computer Basics: Basic Troubleshooting Techniques
Whenever you have a problem with your computer, don't panic! There are many basic troubleshooting techniques you can use to fix issues like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is an extra refinement of the code above. Assuming in fact what is going on here is some 2 dimensional mapping of inputs into a register array, you should take advantage of the ability to represent the problem in a 2D fashion in your code. I think it makes this easier to read and easier to reason about. Here is an example of the same Module but written in 2D model.
Note:
Here’s my best guess at what you are trying to do, in particular I am guessing at the structure of your inputs. This should still provides some help even if I got this assumption wrong
Notes
0.U
when
, instead you need to conditionally construct hardwareif