Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

Coding

Altera_Forum
Honored Contributor II
1,629 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
626 Views

Isn't that a Xilinx tool?

0 Kudos
Altera_Forum
Honored Contributor II
626 Views

 

--- 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.
0 Kudos
Reply