M
Matthias Alles
Hi!
I'm currently performing code coverage with ModelSim on a design.
However I observe a problem regarding the branch coverage with clocked
processes:
process(clk,rst) is
begin
if rst = '1' then
elsif clk'event and clk = '1' then
end if;
end process;
The problem I have is that the elsif-branch for the clock is not
considered to be tested, so in the statistic the branch coverage will
never reach the 100%. The detail to this line is:
File: test.vhd
Line: 70
Branch Coverage for:
elsif clk = '1' and clk'event then
Branch if: True: 140036 False: 0
But in case of the falling edge the condition should be false, only the
clk'event will always be true, since clk is part of the sensitivity list.
What am I missing??
Thanks in advance!
Matthias
I'm currently performing code coverage with ModelSim on a design.
However I observe a problem regarding the branch coverage with clocked
processes:
process(clk,rst) is
begin
if rst = '1' then
elsif clk'event and clk = '1' then
end if;
end process;
The problem I have is that the elsif-branch for the clock is not
considered to be tested, so in the statistic the branch coverage will
never reach the 100%. The detail to this line is:
File: test.vhd
Line: 70
Branch Coverage for:
elsif clk = '1' and clk'event then
Branch if: True: 140036 False: 0
But in case of the falling edge the condition should be false, only the
clk'event will always be true, since clk is part of the sensitivity list.
What am I missing??
Thanks in advance!
Matthias