-
Thread
Wittig(welec) DSO W20xxA Open Source Firmware (Teil4) Gesperrt
I noticed when some values are below certain >> levels then zero is showed: >Hmmm, difficult. I think it is because of the interpolation. I will >check if it can be improved. You knew the job was difficult when
@Luc & all others >> When QM is on, changing Time Base sometimes get corruption on the screen >Yes I noticed this too and I'm searching for the reason. I hope I can >fix it soon. Unfortunately I wasn't able
-
Thread
Kann ein Automat "abstürzen" ?
weggelassen) process (Takt) begin if Takt = '1' and Takt'event then case zustand is when a => blabla leds <= "001"; if irgendwas then zustand <= b; end if; when b => blabla leds <= "010"; if irgendwas then
Anweisung reinpacken - dann hast du auf jeden Fall alle möglichen Zustände abgedeckt: case bla is when a => when b => when c => when others => end case; Gruß, Thomas
-
Thread
Universeller VGA Controller
vertical_counter vertical_counter <= vertical_counter + 1; horizontal_counter <= (others => '0'); end if; -- Vertical Sync Sync Pulse Time = 521 Lines if (vertical_counter = vga_mode.vertical_sync_pulse_time) then vertical_counter <= (others => '0'
process (clock) is begin if rising_edge(clock) then case vgamodus is when vga480x640at60 => vga_mode <= vgamode480x640at60; when vga600x800at72 => vga_mode <= vgamode600x800at72; end case; end if; end process; end architecture rtl; [/vhdl]
-
Thread
Sinus Phasen Verschiebung
architecture Behavioral of Blinky_test is --signal counter : std_logic_vector(9 downto 0) := (others => '0'); signal clk : std_logic := '0'; signal clk_div2 : std_logic := '0'; signal position_sinus1 : integer range 0 to 249 := 0; signal triangle : std_logic_vector(11 downto 0) := (others => '
- to be testet with 10MHz or 10kHz; one sample needs falling and (!) rising edge --LED0 <= '1' when counter < "0111111111" else '0'; LED0 <= '1' when position_sinus1 < 125 else '0'; --LED1 <= clk_div2;--KEY1 and COMP_IN; Inst_key_debounce: key_debounce PORT MAP( clk => clk, reset
-
Thread
Frage zu elsif
when others => null;-)
Matz K. schrieb im Beitrag #4193062: > when others => null;-) Nicht ganz, das würde zu einem case-Statement passen. In dem Fall wäre "else" das Zauberwort (oder Default-Zuweisungen für alle Signale vor dem if-Statement, um keine ungewollten
-
Thread
Enhancing Code Efficiency in C++
can help the complier; provided the compiler allows contribution. The compiler is the key point when it comes to producing efficient code. Hence the place to go is the compiler.
program does not need to be slower and bulkier than a C program. Only use the handy language constructs when they are contributing for good.
-
Thread
Kleine Änderung und mein Design läuft nicht mehr :(
when "0000" => SOUND_A <= "00000000"; when "0001" => SOUND_A <= "00000001"; when "0010" => SOUND_A <= "00000010"; when "0011" => SOUND_A <= "00000011"; when "0100" => SOUND_A
<= "01011010"; when "1111" => SOUND_A <= "01111111"; when others => null; end case; end if; end process; Mix_A <= Volume_A(3 downto 0); A <= SOUND_A when (Osc_A = '1' and Enable(0) = '0') or (Period_N_Out
-
Thread
Ampelschaltung mit Coolrunner2
> dec_out <= "100"; when 6 => dec_out <= "110"; when 7 => dec_out <= "110"; when 8 => dec_out <= "001"; when 9 => dec_out <= "001"; when 10 => dec_out <= "001"; when 11 => dec_out <= "001"; when 12 => dec_out <= "001"; when 13 => dec_out <= "001"; when 14 => dec_out <= "001"; when 15 => dec_out <= "001"; when others => dec_out <= "010"; end case; end
-
Thread
Probleme mit Zähler
0 setzen; when 3 => -- nach dritter Taktflanke -- enb war 0, count muss immernoch 2 sein assert count = "010" report "enb test failed" severity failure; -------------
'; --dir low schalten (rueckwaerts) when 10 => -- nach [10] Taktflanke -- count muss nun 1->[5] sein (rueckwaerts) assert count = "101" report "ceil test failed" severity failure; when others
-
Thread
Genesys 2 (Xilinx Kintex 7): Audio-Codec Implementierung und Filteranbindung
hphone_l <= line_in_l; hphone_r <= line_in_r; nur 0en an den Ausgang zu geben: hphone_l <= (others => '0'); hphone_r <= (others => '0'); --> man hört immer noch die Musik vom IPod über die angeschlossenen Kopfhörer. Sche
start_fs_tic_f) ) then --nxt_state <= s_read; end if; --***************************** when s_read => nxt_state <= s_idle; end case; end process calc_next_state; -- Auscodierung Ausgaenge; with nxt_state select d_out_reg_ready_f <= '1' when s_read, '0' when s_idle
-
Thread
vhdl kontrollstruktur case mit vektoren
sw0; vec(3) := clk; vec(4) := y1; vec(5) := sw1; case vec is when "--100" => y0 <= '1'; start <= '1'; when "--1-1" => start <= '0'; when "---1-" => y0 <= '0'; when "001--" => y0 <= '1'; start <= '1'; when "101--" => start
version of case which allows don't care behaviour, case?. Here is an example: case? sel is when "1---" => o <= "11"; when "-1--" => o <= "10"; when "--1-" => o <= "01"; when "---1" => o <= "00"; when others => null; end case; The comparison is carried
-
Thread
Automat-Anzeigemodul
-- FSM-process mux: process (dig0, dig1, dig2, dig3, cnt) begin case cnt is when "00" => e <= dig0; when "01" => e <= dig1; when "10" => e <= dig2; when "11" => e <= dig3; when others => e <= 0; end case; end process mux; enc:process(e) begin case e is when 1 => data_array(index)(6 downto 0) <= "0000000"; when 2 => data_array(index)(6 downto 0) <= "0000001"; ... when 128 => data_array(index)(6 downto 0) <= "1111111"
-
Thread
Logisch High/Low/RTL_EQ/Latch
arbeiten architecture Behavior of shift_reg is signal QINT: STD_LOGIC_VECTOR (7 downto 0) := (others => '0'); begin shift_reg: process (CLK, Reset) begin if Reset = '1' then Q <= (others => '0'); elsif CLK = '1' and CLK'event then QINT <= D & QINT(7 downto 1 ) ; Q <
-- 1 -- links .. rechts signal reg : std_logic_vector(7 downto 0):= (others=>'0'); : reg <= DATAIN & reg(7 downto 1) when rising_edge(clk); [/vhdl] Oder so was: [vhdl] -- 2 -- links .. rechts signal reg : std_logic_vector(0 to 7):= (others=>'
-
Thread
Fehlermeldung mit unsigned
"; when "0011" => Sieben_segment_Ausgang(7 downto 1) <= "0000110"; when "0100" => Sieben_segment_Ausgang(7 downto 1) <= "1001100"; when "0101" => Sieben_segment_Ausgang(7 downto 1) <= "0100100
"; when "1111" => Sieben_segment_Ausgang(7 downto 1) <= "0111000"; when others => Sieben_segment_Ausgang(7 downto 1) <= "0000000"; end case; end process; seg_out <= Sieben_Segment_ausgang
-
Thread
Komische Info von ISE
; when R6 => state <= R7; when R7 => state <= idle; when W1 => state <= W2; when W2 => UART_CS <= '1'; state <= W3; when W3 => state <= W4; when W4 => UART_WR <= '1'; state <= W5; when W5 => state <= W6; when W6 => state <= W7; when W7 => state <= idle; when others
-
Thread
Uhr Beschreiben
--4 when "0101" => LED <="0010010"; --5 when "0110" => LED <="0000010"; --6 when "0111" => LED <="1111000"; --7 when "1000" => LED <="0000000"; --8 when "1001" => LED <="0010000"; --9 when others => LED <="0000110"; -- Error end case; end process; end Anzeige; [/vhdl]
-
Thread
Signal bleibt ständig undefiniert
normalerweise anders. Nämlich mit einer Typdefinition für die Zustände. Dann braucht man auch keinen /others/ Pfad: http://www.lothar-miller.de/s9y/archives/30-when-others.html Sparxx schrieb im Beitrag #2597797: > Das Signal musst du zuerst initialisieren,es kann ja nicht irgendeinen > Anfangswert
Übrigens das hier brauchst du nicht,glaube ich: [vhdl]WHEN state_wait => --Wenn im Wartezustand (tür zu, licht noch an) IF sechsSekFlag = '1'THEN folge_zustand <= state_idle; sechsSekFlag <= '0';--hier [/vhdl] denn,sechsSekFlag ist '1' für die dauer
-
Thread
process immer laufen in VHDL
<= "000100" & "00" & "00111111"; when 3 => lut_data <= "001001" & "00" & "00100000"; when 4 => lut_data <= "010000" & "00" & "00111111"; when 5 => lut_data <= "010001" & "00" & "00111111"; when 6 => lut_data <= "010010" & "00" & "00101111"; when 7 => lut_data <= "010011" & "00" & "00101111"; when others =>lut_data <= "0000000000000000
-
Thread
UART-Transmitter-Reset
-- sensitive to clock, asynch reset by reset -- -- storage data in internal register when data_ready = 1 -- ----------------------------------------------------------- data_storage : process (clk, reset, sent) is begin if reset = '1' or sent then data_register <= (others => '0');
<= 0; sent <= true; tx_ready_int <= '1'; when others => count_bit <= count_bit + 1; tx <= data_register(count_bit - 1); end case; end if; end if; end process data_send; end architecture behavior;
-
Thread
Quickstart CPLD
anstatt "count_out <= count_int" folgendes: with count_int select count_out <= "0001" when "00", "0010" when "01", "0100" when "10", "1000" when others; Da siehst Du ja dann ob die LEDs in der richtigen Reihenfolge leuchten.
-------------------------------------------------- The OFFSET constraint applies only to CPLDs when the clock is on a global clock net. This can be achieved by performing one of the following: 1. Placing the following constraint on the clock net NET myclock BUFG=CLK; (replace myclock with
-
Thread
CRC Berechnung für Ethernet
> OutByte <= CRCResultInverted( 15 downto 8); SendBufferState <= SendCRC1; when SendCRC1 => OutByte <= CRCResultInverted( 23 downto 16); SendBufferState <= SendCRC2; when SendCRC2 => OutByte <= CRCResultInverted( 31 downto 24); SendBufferState <= SendCRC3; when SendCRC3 => OutByte <= (others => '0'); TXOut <= '0'; SendBufferState <= Idle; [/vhdl] Es gibt noch den Hinweis, dass die ersten 32 Bit der MAC-Adresse invertiert
-
Thread
Fragen zum VHDL Drehgeber Code
<= '0'; ce <= '0'; error <= '1'; when "0100" => up_down <= '0'; ce <= '1'; error <= '0'; when "0101" => up_down <= '0'; ce <= '0'; error <= '0'; when "0110" => up_down <= '0'; ce <= '0'; error <= '1'; when "0111" => up_down
<= '0'; ce <= '0'; error <= '0'; when others => null; end case; end process; [/vhdl] up_down ist im Fehlerfall, bei keiner Bewegung und bei einer Rückwärtsbewegung '0'. Bei der Vorwärtsbewegung ist up_down '1'. ce ist bei keiner
-
Thread
Als Ingenieur in die Politik gehen
"other-oriented" feelings of sympathy and concern for unfortunate others > Personal Distress – measures "self-oriented" feelings of personal anxiety and unease in tense interpersonal settings Mit Fragen wie: "I daydream and fantasize, with some regularity, about
intelligence is important, but the unbridled enthusiasm has obscured a dark side. New evidence shows that when people hone their emotional skills, they become better at manipulating others. When you’re good at controlling your own emotions, you can disguise your true feelings. When you know what others are feeling
-
Thread
latch ?
<= s4; when s4 => next_state <= s1; end case; end process process2; process3 : process (state) begin case state is when s1 => outp <= '1'; when s2 => outp <= '1';
VHDL] signal DATA : std_logic_vector(15 downto 0) ; . . process(DATA,ACK, ... ) . DATA <= (others => '0'); . case xx is . . when DATA_H => ADDR <= "0"; if ACK = '1' then DATA(15 downto 8) <= DATA_IN; end if; when DATA_L => ADDR <
-
Thread
VHDL - 'Warnung' vom Synthesetool (Synplify) unverständlich
: CL275 :"D:\test\test2\hdl\Test.vhd":42:11:42:11|Possible don't care specified as next state in others or default clause, or failure to extract state machine @END Der VHDL-Code dazu: [vhdl] library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; -- library proasic3; entity Testprojekt
after 2 ns; else z <= z + 1 after 2 ns; end if; case z is when 1 => out_vec <= b"0001"; when 2 => out_vec <= b"0010"; when OTHERS => out_vec <= b"1001"; end case; -- if (z = 1) then -- out_vec
-
Thread
Lauflicht mit CPLD
(clk) then cnt <= cnt+1; end if; end process; process(cnt) begin case cnt is when "000" => led <="00000001"; when "000" => led <="00000010"; when "000" => led <="00000100"; when "000" => led <="00001000"; when "000" => led <="00010000"; when "000" => led <="00100000"; when "000" => led <="01000000"; when "000" => led <="10000000"; when others => null; end case; end process; [/vhdl] MFG Falk