trig80 <= (trig40
and
not
(s40))
when
rising_edge(clk);