Forum Discussion
SyafieqS
Super Contributor
5 years agoHi,
The coutport of the primitive acts as the carry-in for the next element of the carry chain. To use carry_sum primitive, there are few rules you need to consider before using it refer to link below.
https://www.intel.com/content/www/us/en/programmable/quartushelp/13.0/mergedProjects/hdl/prim/prim_file_carry_sum.htm
1, Verilog HDL example of a CARRY_SUM primitive instantiation.
carry_sum <instance_name> (.sin(<input_wire1>), .cin(<input_wire2>),
.sout(<output_wire1>), .cout(<output_wire2>));
Thanks,
Regards