Example Code

BCD Addition in FPGA

Code and Documents

Attachment

Direct addition of two 16-Bit BCD numbers.

Other requirements:

This function also requires the Fixed-point Math library found on NILabs (ni.com/labs). It uses the function AddSub from this library to implement a 16-Bit binary adder and 4-Bit binary incrementer.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors