D
Davy
Guest
Hi all,
I always found people like to add default branch like below:
case(branch)
... ...
[all the possible branch]
... ...
default: signal = 8'bx;
And my friend told me it's for simulation cause. When branch not hit
all the possible case, the branch must have something like xxxx. So we
set signal to xxxx to let xxxx pass go on and help us to find the bug.
If I set default: signal = 0; the xxxx problem will be hidden and hard
to find the bug.
But as we know, there is no xxxx signal in real digital world. So is
there any better method to solve the problem?
Best regards,
Davy
I always found people like to add default branch like below:
case(branch)
... ...
[all the possible branch]
... ...
default: signal = 8'bx;
And my friend told me it's for simulation cause. When branch not hit
all the possible case, the branch must have something like xxxx. So we
set signal to xxxx to let xxxx pass go on and help us to find the bug.
If I set default: signal = 0; the xxxx problem will be hidden and hard
to find the bug.
But as we know, there is no xxxx signal in real digital world. So is
there any better method to solve the problem?
Best regards,
Davy