Acta Scientific Computer Sciences

Research Article Volume 4 Issue 1

How to Implement an Algorithm in Hardware

Rustem Popa*

Department of Electronics and Telecommunications, “Dunarea de Jos” University in Galati, Romania

*Corresponding Author: Rustem Popa, Department of Electronics and Telecommunications, “Dunarea de Jos” University in Galati, Romania.

Received: November 23, 2021; Published: December 23, 2021


After a brief review of the possibilities of implementing an algorithm, we analyze the implementation of an algorithm for coloring a monochrome image in an FPGA (Field Programmable Gate Array) circuit. Each pixel in shades of gray in the monochrome image receives one of 16 possible colors, according to its position in the color image. Although the approximation is crude, given that the original image has more than 16 million distinct colors, a comparison between the two images indicates a PSNR (Peak Signal to Noise Ratio) value of almost 25 dB, and the appearance of the color image is acceptable. The algorithm was implemented in the MATLAB environment and then in the FPGA using the integrated Xilinx ISE design environment. The color images generated in this way were identical, but the execution speed in FPGA was 185 times faster.


Keywords: Image Processing; Image Coloring; Circuit Simulation; Field Programmable Gate Arrays (FPGAs); MATLAB Environment


  1. R Dobai and L Sekanina. “Image Filter Evolution on the Xilinx Zynq Platform”. 2013 NASA/ESA Conference on Adaptive Hardware and Systems (AHS-2013), IEEE Xplore (2013).
  2. Y Maeda and N Matsushita. “Simultaneous Perturbation Particle Swarm Optimization and Its FPGA Implementation”. in: A. Lazinica (ed.) Particle Swarm Optimization, In Tech, Croatia (2009): 347-362.
  3. G Grammatikopoulos., et al. “Simple Matlab Tool for Automated Malignant Melanoma Diagnosis”. WSEAS Transactions on Information Science and Applications, March (2007).
  4. T Chen., et al. “Combined Digital Signature and Digital Watermark Scheme for Image Authentication”. Info-tech and Info-net, 2001. Proceedings. Beijing 5 (2001).
  5. R C Gonzalez., et al. “Digital Image Processing using MATLAB”. 2nd, Gatesmark Publishing, ch. 7 (2009): 318-376.
  6. R Popa. “ECG Signal Filtering in FPGA”. The 6th International Symposium on Electrical and Electronics Engineering, ISEEE 2019, Galaţi, Romania, 18-20 October 2019, (2019).
  7. M S Pavel and R Popa. “An Algorithm for Pseudocoloring Images in FPGA”. The 7th International Symposium on Electrical and Electronics Engineering, ISEEE 2021, Galaţi, Romania, 28-30 October 2021, pp. 8 in Abstract Volume (paper 26) (2021).
  8. Van Loi Le. “FPGA4Student”. Site with Verilog/VHDL Projects, (2016).


Citation: Rustem Popa. “How to Implement an Algorithm in Hardware". Acta Scientific Computer Sciences 4.1 (2022): 41-45.


Copyright: © 2022 Rustem Popa. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.


Acceptance rate35%
Acceptance to publication20-30 days

Indexed In

News and Events

  • Certification for Review
    Acta Scientific certifies the Editors/reviewers for their review done towards the assigned articles of the respective journals.
  • Submission Timeline for Upcoming Issue
    The last date for submission of articles for regular Issues is June 25, 2024.
  • Publication Certificate
    Authors will be issued a "Publication Certificate" as a mark of appreciation for publishing their work.
  • Best Article of the Issue
    The Editors will elect one Best Article after each issue release. The authors of this article will be provided with a certificate of "Best Article of the Issue"
  • Welcoming Article Submission
    Acta Scientific delightfully welcomes active researchers for submission of articles towards the upcoming issue of respective journals.

Contact US