How to use a Function in VHDL

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 6

  • @Dustycircuit
    @Dustycircuit 6 лет назад +1

    Thank you for taking you're time to make all these wonderful tutorials!

  • @philiphubbe9725
    @philiphubbe9725 2 года назад +1

    Very straightforward.

  • @shaizohar4258
    @shaizohar4258 6 лет назад

    this wonderful tutorials really helpfull thx

  • @mastroscala
    @mastroscala 4 года назад +1

    So functions are just used to make the life easier in "compilation time", they aren't translated in hardware, so they can have only static inputs (like constants). Am I right?
    Thank you for the videos

    • @VHDLwhiz
      @VHDLwhiz  4 года назад +2

      Not entirely correct. You can assign signals or variables to function parameters as well, not only constants. But inside of the function, the parameters behave like constants. You can't change them inside of the function, and you can't send values out of the function through the parameter list. Use the 'return' keyword for that.

  • @mingshengyin1936
    @mingshengyin1936 4 года назад

    Great thanks!