Hallo Ich habe in einem Design folgenden Code angetroffe:
1 | power_up: process(clk, reset) begin |
2 | if reset = '1' then |
3 | reset_sm_ub <= '1'; |
4 | elsif clk'EVENT and clk = '1' then |
5 | if i_pf50_n = '1' and vcbank = '1' and vpos_f = '1' then |
6 | reset_sm_ub <= '0'; |
7 | elsif vpos_f = '0' then |
8 | reset_sm_ub <= '1'; |
9 | end if; |
10 | end if; |
11 | end process power_up; |
Ist mein Gefühl richtig, dass dieser Code unsauber ist, denn welchen Wert hat reset_sm_ub, wenn z.B. vcbank = '0'? Dieser Zustand wird in der If-else Abfrage nicht behandelt. Was ist eure Meinung? Gruss Reto