I need to start VHDL code at button pressVhdl with no clkVHDL - why do we need to declare signals for processes?Cyclone II Board VHDL Clock DividerHow expensive is data type conversion vs. bit array manipulation in VHDL?Why won't my VHDL run properly on my FPGA?Simple oscillator in VHDLVHDL syntax to output a signal valuedrive one output with two inputs vhdlVHDL counter skipping numbers (FPGA button trigger)My VHDL flag needs to terminate

Notepad++ - How to find multiple values on the same line in any permutation

What to say to a student who has failed?

What is this symbol: semicircles facing eachother

How much code would a codegolf golf if a codegolf could golf code?

Defense against attacks using dictionaries

I got kicked out from graduate school in the past. How do I include this on my CV?

Are there account age or level requirements for obtaining special research?

Is using a hyperlink to close a modal a poor design decision?

Using `With[...]` with a list specification as a variable

How would one country purchase another?

Why were movies shot on film shot at 24 frames per second?

Why do all fields in a QFT transform like *irreducible* representations of some group?

How should I face my manager if I make a mistake because a senior coworker explained something incorrectly to me?

Is my soulless catatonic body a valid target for the Imprisonment spell?

Dealing with an extrovert co-worker

Sun setting in East!

Does travel insurance for short flight delays exist?

Why don't electrons take the shorter path in coils?

Why can't an Airbus A330 dump fuel in an emergency?

What is wrong about this application of Kirchhoffs Current Law?

Does norwegian.no airline overbook flights?

Is "The life is beautiful" incorrect or just very non-idiomatic?

How to draw a cube that can be inscribed within a right circular cone?

What are some interesting features that are common cross-linguistically but don't exist in English?



I need to start VHDL code at button press


Vhdl with no clkVHDL - why do we need to declare signals for processes?Cyclone II Board VHDL Clock DividerHow expensive is data type conversion vs. bit array manipulation in VHDL?Why won't my VHDL run properly on my FPGA?Simple oscillator in VHDLVHDL syntax to output a signal valuedrive one output with two inputs vhdlVHDL counter skipping numbers (FPGA button trigger)My VHDL flag needs to terminate






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a FPGA that I am coding with VHDL. I want the system to start at a known state until all opamps are powered. My attempt is to set a value when a button is pressed. When this value is received, the code continues. I think that when flag is defined, that initial value "1000" is ignored and the FPGA most likely starts at all zeros . On a key press, a new value for "flag" is set. I would then expect the test LED to blink. I tried this and nothing happens. If I replace



if (flag = "10011") then


with



if (KEY_N(0) = '1') then


it works.



What am I missing in the code as shown below?



I also put the "if" pair inside the clocked section with no success.



signal flag : std_logic_vector(4 downto 0):= "10000"; 

DATA: process(CLK, KEY_N(0)) --
begin

if KEY_N(0) = '1' then
flag <= "10011";
end if;

if KEY_N(0) = '0' then
flag <= "00100";
end if;
if (rising_edge(CLK)) then
clk_cntr <= clk_cntr + 1;

if (flag = "10011") then
OTHER_CNTR <= OTHER_CNTR + 1;
END IF;

END IF;

END PROCESS;

GPIO_LEDTEST(2) <= OTHER_CNTR(22); --LED SHOULD BLINK









share|improve this question
































    0















    I have a FPGA that I am coding with VHDL. I want the system to start at a known state until all opamps are powered. My attempt is to set a value when a button is pressed. When this value is received, the code continues. I think that when flag is defined, that initial value "1000" is ignored and the FPGA most likely starts at all zeros . On a key press, a new value for "flag" is set. I would then expect the test LED to blink. I tried this and nothing happens. If I replace



    if (flag = "10011") then


    with



    if (KEY_N(0) = '1') then


    it works.



    What am I missing in the code as shown below?



    I also put the "if" pair inside the clocked section with no success.



    signal flag : std_logic_vector(4 downto 0):= "10000"; 

    DATA: process(CLK, KEY_N(0)) --
    begin

    if KEY_N(0) = '1' then
    flag <= "10011";
    end if;

    if KEY_N(0) = '0' then
    flag <= "00100";
    end if;
    if (rising_edge(CLK)) then
    clk_cntr <= clk_cntr + 1;

    if (flag = "10011") then
    OTHER_CNTR <= OTHER_CNTR + 1;
    END IF;

    END IF;

    END PROCESS;

    GPIO_LEDTEST(2) <= OTHER_CNTR(22); --LED SHOULD BLINK









    share|improve this question




























      0












      0








      0








      I have a FPGA that I am coding with VHDL. I want the system to start at a known state until all opamps are powered. My attempt is to set a value when a button is pressed. When this value is received, the code continues. I think that when flag is defined, that initial value "1000" is ignored and the FPGA most likely starts at all zeros . On a key press, a new value for "flag" is set. I would then expect the test LED to blink. I tried this and nothing happens. If I replace



      if (flag = "10011") then


      with



      if (KEY_N(0) = '1') then


      it works.



      What am I missing in the code as shown below?



      I also put the "if" pair inside the clocked section with no success.



      signal flag : std_logic_vector(4 downto 0):= "10000"; 

      DATA: process(CLK, KEY_N(0)) --
      begin

      if KEY_N(0) = '1' then
      flag <= "10011";
      end if;

      if KEY_N(0) = '0' then
      flag <= "00100";
      end if;
      if (rising_edge(CLK)) then
      clk_cntr <= clk_cntr + 1;

      if (flag = "10011") then
      OTHER_CNTR <= OTHER_CNTR + 1;
      END IF;

      END IF;

      END PROCESS;

      GPIO_LEDTEST(2) <= OTHER_CNTR(22); --LED SHOULD BLINK









      share|improve this question
















      I have a FPGA that I am coding with VHDL. I want the system to start at a known state until all opamps are powered. My attempt is to set a value when a button is pressed. When this value is received, the code continues. I think that when flag is defined, that initial value "1000" is ignored and the FPGA most likely starts at all zeros . On a key press, a new value for "flag" is set. I would then expect the test LED to blink. I tried this and nothing happens. If I replace



      if (flag = "10011") then


      with



      if (KEY_N(0) = '1') then


      it works.



      What am I missing in the code as shown below?



      I also put the "if" pair inside the clocked section with no success.



      signal flag : std_logic_vector(4 downto 0):= "10000"; 

      DATA: process(CLK, KEY_N(0)) --
      begin

      if KEY_N(0) = '1' then
      flag <= "10011";
      end if;

      if KEY_N(0) = '0' then
      flag <= "00100";
      end if;
      if (rising_edge(CLK)) then
      clk_cntr <= clk_cntr + 1;

      if (flag = "10011") then
      OTHER_CNTR <= OTHER_CNTR + 1;
      END IF;

      END IF;

      END PROCESS;

      GPIO_LEDTEST(2) <= OTHER_CNTR(22); --LED SHOULD BLINK






      vhdl fpga






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 5 at 9:01









      bsheps

      6124 silver badges19 bronze badges




      6124 silver badges19 bronze badges










      asked Mar 27 at 16:47









      Tyler314Tyler314

      105 bronze badges




      105 bronze badges

























          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382500%2fi-need-to-start-vhdl-code-at-button-press%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55382500%2fi-need-to-start-vhdl-code-at-button-press%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현