element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum CPLD Finite State Machine and Internal Signals
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 473 subscribers
  • Views 585 views
  • Users 0 members are here
  • fsm
  • frontpage
  • altera
  • max_v_cpld
Related

CPLD Finite State Machine and Internal Signals

oldmanraskers
oldmanraskers over 10 years ago

Hi all,

I am using Altera Quartus 14.1 with a MAXV CPLD. I would like some assistance with driving a state machine using internal input and output signals as opposed to real inputs and outputs? I want to have my state machine enabled/disabled by an internally generated flag and I would also like to set internal flags within the CPLD instead of driving real world output pins. Does anyone have a method or way ahead that might allow me to get this working?

Regards, oldmanraskers

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 10 years ago in reply to oldmanraskers +1
    If it's your first design with this kind of part it might be a good plan to have a simulation running and the design fitted into the chip using the right pins before you commit to the board being made…
Parents
  • michaelkellett
    0 michaelkellett over 10 years ago

    What tools are you using for your design - what you describe is easy in VHDL or Verilog.

     

    I can help you with VHDL, others can probably help with Verilog.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • michaelkellett
    0 michaelkellett over 10 years ago

    What tools are you using for your design - what you describe is easy in VHDL or Verilog.

     

    I can help you with VHDL, others can probably help with Verilog.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • oldmanraskers
    0 oldmanraskers over 10 years ago in reply to michaelkellett

    I have used the built in State Machine design tool and converted the design file to VHDL. I think I'm probably missing the point with what STD_LOGIC declarations mean. I'm basically trying to have a state machine that is started by pressing a momentary start pushbutton that I latch using a flip flop, but I want the state machine to run once and then stop, until the start pushbutton is pressed again. I thought that I could tell the state machine to set an output in the last state, and use that output to disable the latched start circuit but the software seemingly won't let me check the state of an output - which kind of makes sense - but I don't know how to fix it because the only option I have for output bits is OUT STD_LOGIC.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to oldmanraskers

    Please post the VHDL code - I'll take a look.

     

    Which MaxV device are you using and do you have hardware to run your design on.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • oldmanraskers
    0 oldmanraskers over 10 years ago in reply to michaelkellett

    I'm just designing the hardware circuitry at the moment, so I guess I'll leave this issue until that's finished.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to oldmanraskers

    If it's your first design with this kind of part it might be  a good plan to have  a simulation running and the design fitted into the chip using the right pins before you commit to the board being made. People often get caught out by odd restrictions on the use of certain pins which may be for clock inputs, global resets, input only etc.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube