- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please help me with an error in my code.
I need that when a button is pressed, the signal changes its value. But the quartus says he can not infer a register for it. I found a resolution, which is here:http://quartushelp.altera.com/14.0/mergedprojects/msgs/msgs/evrfx_vhdl_is_not_synthesizable_since_it_does_not_hold_its_value.htm . But I do not know the reset utility there. Only need the button. Thank you. Code: accept_seconds: PROCESS(enable,data) --processo de aceitar ou não os segundos inseridos.
BEGIN
-- IF(enable='0') THEN
IF(FALLING_EDGE(enable)) THEN
IF(data>="000000" AND data<="111011") THEN
tempoutput <= '1';
tempsave <= '1';
ELSE
tempoutput <= '0';
tempsave <= '0';
END IF;
-- END IF;
ELSE
tempsave <= '0';
END IF;
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Currently toy have an asynchronous enable. Make it synchronous by making the clock the outer most thing in the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see that there are two lines commented out, these change the functionality of the code enormously as the END IF is for the second for loop. Was this something you did to try and get it working?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page