diff options
author | LYAM <cous5830@gmail.com> | 2025-05-05 17:55:36 -0400 |
---|---|---|
committer | LYAM <cous5830@gmail.com> | 2025-05-05 17:55:36 -0400 |
commit | c091525fd6ea968069b6a3938dd287a0d559cffd (patch) | |
tree | 45962e270a792f2f545f6275169bf27241514947 /pb_APP_log_comb.srcs/sources_1/new/Mux.vhd | |
parent | d3b7d2a0b154d4fa1889a44accae8b35b77041df (diff) | |
parent | 650da48b5525af3e5d05a5fb19879330f6c34905 (diff) |
Merge branch 'master' of git.chausse.xyz:s4-app1
Diffstat (limited to 'pb_APP_log_comb.srcs/sources_1/new/Mux.vhd')
-rw-r--r-- | pb_APP_log_comb.srcs/sources_1/new/Mux.vhd | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/pb_APP_log_comb.srcs/sources_1/new/Mux.vhd b/pb_APP_log_comb.srcs/sources_1/new/Mux.vhd index 1cb40ff..6202d38 100644 --- a/pb_APP_log_comb.srcs/sources_1/new/Mux.vhd +++ b/pb_APP_log_comb.srcs/sources_1/new/Mux.vhd @@ -53,12 +53,6 @@ architecture Behavioral of Mux is signal break : BOOLEAN := FALSE; - signal unit_input_buf : STD_LOGIC_VECTOR(3 downto 0); - signal tens_input_buf : STD_LOGIC_VECTOR(3 downto 0); - - signal unit_sim_sink : string(1 to 1); - signal tens_sim_sink : string(1 to 1); - begin decide : process(ADCBin, Dizaines, Unites_ns, BTN, erreur, S2, Code_signe, Unite_s) @@ -66,31 +60,31 @@ begin -- HANDLE SWITCH {{{ if ( (S2 = pressed) or (erreur = '1')) then break <= TRUE; -- Avoids double printing on 7seg - tens_input_buf <= char_E; - unit_input_buf <= char_r; + DAFF1 <= char_E; + DAFF0 <= char_r; end if; -- }}} -- HANDLE BUTTONS {{{ if break = FALSE then case (BTN) is when "00" => - unit_input_buf <= Unites_ns; - tens_input_buf <= Dizaines; + DAFF0 <= Unites_ns; + DAFF1 <= Dizaines; when "01" => -- impossible de buster "C" en hex -- encore moins avoir une deuxième décimale -- on mets donc les "Dizaines" à zéro - unit_input_buf <= ADCbin; - tens_input_buf <= "0000"; + DAFF0 <= ADCbin; + DAFF1 <= "0000"; when "10" => - unit_input_buf <= Unite_s; - tens_input_buf <= Code_signe; + DAFF0 <= Unite_s; + DAFF1 <= Code_signe; when "11" => - tens_input_buf <= char_E; - unit_input_buf <= char_r; + DAFF1 <= char_E; + DAFF0 <= char_r; when others => - tens_input_buf <= char_E; - unit_input_buf <= char_r; + DAFF1 <= char_E; + DAFF0 <= char_r; end case; end if; -- }}} |