Forum Discussion

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

Coding

hello,

i doing a mass energy calculator (E = MC^2) for my Embedded systems project. since i am very new with FPGA and the ATLYS software. so can anyone give codes as to how i can save the constant for the value of "c" and later call it after user input and thus display on the FPGA board.

2 Replies

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

    --- Quote Start ---

    hello,

    i doing a mass energy calculator (E = MC^2) for my Embedded systems project. since i am very new with FPGA and the ATLYS software. so can anyone give codes as to how i can save the constant for the value of "c" and later call it after user input and thus display on the FPGA board.

    --- Quote End ---

    First, you need do floating point to fix point number transform, then define a constant C*C, use this constant to multiply M.