Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Sequence of operations

Hi there,

I'm trying to build a module that initializes an LCD and at the beginning a series of operations must be performed to initialize the LCD, so far a solution is to use a counter and decode each step into the required series of data sent to the LCD.

I'm new to HDL and was wondering what other solutions are available?

Thank you.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I would think more along the lines of a state machine than a counter, but either approach would work. A state machine would be more flexible and IMO easier to look at and debug.

    Hope that helps.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I gues this aproach is somewhat better. I was also thinking of a LUT for each step but a state machine sounds better.