J
Jerry
Guest
Hi all:
I was attracted to simplified conditions, but they don't cross to mixed std_logic / boolean such as this:
Where run_tx is std_logic and rd/wr_idx are natural. This will not work? I was hoping to get away with mixing the convenience of bool / std_logic. That should probably be an extension.
I had to put in "run_tx = '1'" to resolve to bool / bool.
Vsim does not complain about the pure std_logic expression simplification that involves all std_logic, for instance this is fine:
>> if not rd_msg_lst and RD_MSG_i then
Where rd_msg_lst and RD_MSG_i are std_logic (obvious edge detection).
So, not possible to mix bool / std_logic, right? I hope that's only "as of yet".
Thanks in advance for the comments,
Jerry
I was attracted to simplified conditions, but they don't cross to mixed std_logic / boolean such as this:
elsif run_tx and (rd_idx < wr_idx) then
Where run_tx is std_logic and rd/wr_idx are natural. This will not work? I was hoping to get away with mixing the convenience of bool / std_logic. That should probably be an extension.
I had to put in "run_tx = '1'" to resolve to bool / bool.
Vsim does not complain about the pure std_logic expression simplification that involves all std_logic, for instance this is fine:
>> if not rd_msg_lst and RD_MSG_i then
Where rd_msg_lst and RD_MSG_i are std_logic (obvious edge detection).
So, not possible to mix bool / std_logic, right? I hope that's only "as of yet".
Thanks in advance for the comments,
Jerry