vscode-terosHDL
vscode-terosHDL copied to clipboard
State Machine Viewer draws nodes containing `*initial*` differently
Describe the bug
The state machine viewer draws any node containing the substring initial
as a circle, with no name attached:
This can cause issues. For example, if you have a state for initializing a subsystem, you may have to modify your state names to properly graph the FSM.
This behavior seems intentional, but it might appear unexpected and arbitrary to the end user, so I've labeled this as a bug.
To Reproduce Use fsm_1.vhd, but replace the name of one of the states with something including `initial.
Code
process (clk, reset)
begin
if reset = '1' then
state <= s0;
elsif (clk'event and clk = '1') then
case state is
when s0=>
if input = '1' then
state <= s1;
else
state <= s0;
end if;
-- this state's name is the issue
when first_initial_1 =>
if input = '1' then
state <= s2;
else
state <= s1;
end if;
when s2=>
if input = '1' then
state <= s0;
else
state <= s2;
end if;
end case;
end if;
end process;
Please complete the following information:
- Ubuntu 16.04
- VSCode version 1.81.1
Screenshots