computers Article Hardware–Software Co-Design for Decimal Multiplication Riaz-ul-haque Mian * , Michihiro Shintani and Michiko Inoue Graduate School of Science and Technology, Nara Institute of Science and Technology, Ikoma 630-0192, Japan;
[email protected] (M.S.);
[email protected] (M.I.) * Correspondence:
[email protected] Abstract: Decimal arithmetic using software is slow for very large-scale applications. On the other hand, when hardware is employed, extra area overhead is required. A balanced strategy can overcome both issues. Our proposed methods are compliant with the IEEE 754-2008 standard for decimal floating-point arithmetic and combinations of software and hardware. In our methods, software with some area-efficient decimal component (hardware) is used to design the multiplication process. Analysis in a RISC-V-based integrated co-design evaluation framework reveals that the proposed methods provide several Pareto points for decimal multiplication solutions. The total execution process is sped up by 1.43× to 2.37× compared with a full software solution. In addition, 7–97% less hardware is required compared with an area-efficient full hardware solution. Keywords: decimal arithmetic; decimal multiplication; decimal floating-point; hardware-software co- design 1. Introduction Decimal arithmetic is very important for banking, commercial, and financial transac- tions. Moreover, it is widely used in scientific applications. A study by IBM has indicated that more than half of the numerical data in a commercial database are stored in decimal format [1]. Decimal arithmetic using hardware or software is typically much more complex Citation: Mian, R.-u.-h.; Shintani, M.; and slower than its counterpart binary arithmetic.