《计算机应用》唯一官方网站 ›› 2023, Vol. 43 ›› Issue (S2): 130-134.DOI: 10.11772/j.issn.1001-9081.2023020140

• 先进计算 • 上一篇    

中标麒麟下基于PCIe总线的时统板驱动实现

刘丽霞(), 孙昆, 张力, 李之乾   

  1. 北京计算机技术及应用研究所,北京 100854
  • 收稿日期:2023-02-17 修回日期:2023-05-10 接受日期:2023-05-18 发布日期:2024-01-09 出版日期:2023-12-31
  • 通讯作者: 刘丽霞
  • 作者简介:刘丽霞(1985—),女,山西忻州人,高级工程师,硕士,主要研究方向:嵌入式计算机
    孙昆(1984—),女,河北保定人,高级工程师,硕士,主要研究方向:嵌入式计算机
    张力(1986—),男,北京人,高级工程师,硕士,主要研究方向:嵌入式计算机
    李之乾(1981—),男,北京人,研究员,硕士,主要研究方向:嵌入式计算机。

Implementation of timing board driver based on PCIe bus in Neokylin

Lixia LIU(), Kun SUN, LI ZHANG, Zhiqian LI   

  1. Beijing Computer Technology and Applied Research Iinstitute,Beijing 100854,China
  • Received:2023-02-17 Revised:2023-05-10 Accepted:2023-05-18 Online:2024-01-09 Published:2023-12-31
  • Contact: Lixia LIU

摘要:

时统板作为保证时间同步的板卡在装备系统上有着重要的应用,具有高精度、小型化特点。外设部件互连高速串行标准(PCIe)总线有效提高了数据传输的速率和质量,因此基于PCIe总线的时统板能保证时间同步的可靠性。在中标麒麟操作系统下实现PCIe时统板驱动,设计了使用时统板定时给本地时间校时的服务。通过对比直接读取时统板时间与读取被时统板定时校准的本地时间的误差,说明了所设计的时统板驱动稳定和有效;同时,拓展了时统板应用。

关键词: 外设部件互连高速串行标准, 中标麒麟, Linux, 时统板, 驱动

Abstract:

As a board that ensures time synchronization, the timing board has important applications in equipment systems, with high accuracy and miniaturization characteristics. PCIe (Peripheral Component Interconnect express) bus effectively improves the speed and quality of data transmission, thereby timing board based on PCIe bus can ensure the reliability of time synchronization. The PCIe timing board driver was designed and implemented in Neokylin operating system. The service of using the timing board to adjust the local time was designed. By comparing two applications that obtain absolute time accuracy, it is demonstrated that the designed time board driver is stable and effective. It has expand the applications of timing board.

Key words: Peripheral Component Interconnect express (PCIe), Neokylin, Linux, timing board, driver

中图分类号: