R
Rick C
Guest
CASE? and \'-\' as a wildcard. It\'s part of the standard. case? pretty much has one purpose as far as I know, to accept \'-\' as a wildcard. Yet it rejects my code...
# KERNEL: Fatal Error: Don\'t care (\'-\') value in the matching select/case statement expression.
procedure Cmnd_Parse (
Command : in unsigned(8 downto 0);
Right_Left : in String;
Cmnd_Time : in time ) is
begin
case? Command is
when 9x\"000\" =>
assert false report Right_Left & \" - NOP with enable detected\";
when 9x\"001\" =>
assert false report Right_Left & \" - Clear Display command\";
when 9x\"002\" =>
assert false report Right_Left & \" - Return Home command\";
when b\"0000001--\" =>
....
There are a number of matching expressions with the wildcard \'-\' after this.
This has got to be an issue with the simulator, right? I guess I can try a test case that isn\'t so large, but this will be the second feature I\'ve found that Aldec doesn\'t support so well.
I hate to rip out all this code, but it looks like I\'ll have to replace it with IF statements and they will work better comparing from the high end down, so the order of comparisons will be opposite ... lots of editing. Fun...
--
Rick C.
- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209
# KERNEL: Fatal Error: Don\'t care (\'-\') value in the matching select/case statement expression.
procedure Cmnd_Parse (
Command : in unsigned(8 downto 0);
Right_Left : in String;
Cmnd_Time : in time ) is
begin
case? Command is
when 9x\"000\" =>
assert false report Right_Left & \" - NOP with enable detected\";
when 9x\"001\" =>
assert false report Right_Left & \" - Clear Display command\";
when 9x\"002\" =>
assert false report Right_Left & \" - Return Home command\";
when b\"0000001--\" =>
....
There are a number of matching expressions with the wildcard \'-\' after this.
This has got to be an issue with the simulator, right? I guess I can try a test case that isn\'t so large, but this will be the second feature I\'ve found that Aldec doesn\'t support so well.
I hate to rip out all this code, but it looks like I\'ll have to replace it with IF statements and they will work better comparing from the high end down, so the order of comparisons will be opposite ... lots of editing. Fun...
--
Rick C.
- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209