华电技术 ›› 2019, Vol. 41 ›› Issue (1): 13-16.

• 研究与开发 • 上一篇    下一篇

基于查表插值法的余弦函数离散值算法

  

  1. 1.南京电研电力自动化股份有限公司,南京〓210000;2.南京国电南自自动化有限公司,南京〓211100
  • 出版日期:2019-01-25 发布日期:2019-02-14

Discrete value algorithm of cosine function based on table lookup interpolation

  1. 1.Nanjing Dianyan Electric Power Automation Company Limited, Nanjing 210000, China ;2.Nanjing SAC Automation Company Limited, Nanjing 211100, China
  • Online:2019-01-25 Published:2019-02-14

摘要:

现场可编程逻辑门阵列(FPGA)以其灵活性、可靠性和集成度高而在智能电网相关继电保护及自动化设备中得到广泛应用。由于计算精度与存储容量的突出矛盾,在存储资源有限的FPGA芯片中,常用的查找表实现余弦函数离散值的方法已没有优势。提出了一种查找表与拉格朗日插值相结合的算法,结合两者的优势,在保证精度的前提下优化了算法的输出时延和资源消耗,并在Xilinx公司的Artix7芯片上完成了算法的设计和硬件验证。

关键词:

Abstract:

Field programmable gate array (FPGA) is widely used in smart grid related relay protection and automation equipment for its flexibility, reliability and integration. Due to the prominent contradiction between the calculation accuracy and the storage capacity, the commonly used table lookup method has no advantage in calculating the cosine function discrete value in the FPGA chip which has limited storage space. Therefore, an algorithm which combines the table lookup with the Lagrange interpolation is proposed. Combining the advantages of the two algorithms, the output delay and resource consumption of the algorithm are optimized on the premise of ensuring the accuracy. The design of the algorithm and hardware verification is completed on Xilinx’s Artix7 chip.

Key words: