This application discloses a level conversion method, which includes: connecting the input pin to the corresponding input interface in CPLD; connecting the output pin to the corresponding output interface in the CPLD; outputting the corresponding level through the output interface according to the internal corresponding relationship of the CPLD; in which the internal corresponding relationship includes: The corresponding relationship between the level of the input interface and the level of the output interface is described. In this application, the corresponding relationship between the input pin and the output pin which need to be converted, i.e. the internal corresponding relationship between the input and output pins, is set in CPLD in the form of a program. The program is fast and convenient, without considering the layout of the wiring, the design difficulty is reduced, which is different from the existing technology. The level conversion chip has lower hardware cost and lower maintenance cost. Accordingly, the application also discloses a level conversion system, device and readable storage medium with the same beneficial effect.
【技术实现步骤摘要】
一种电平转换方法、系统、装置及可读存储介质
本专利技术涉及电路设计领域,特别涉及一种电平转换方法、系统、装置及可读存储介质。
技术介绍
在服务器结构体系中,接口的形式多种多样,各种芯片之间的接口电平不同,必须进行电平之间的转换才能完成数据通信。目前电路设计中,一般通过电平转换芯片来实现不同电平接口之间的互联,但电平转换芯片为特定的电路硬件,在布线过程中有许多局限:增加了PCB布局面积和布线难度;不同的电平转换接口需要不同的电平转换芯片,硬件成本和维护成本增加;接口的输入输出对应要求较高,一旦出错,需要重新修改线路,纠错成本高。因此,如何提供一种解决上述技术问题的方案是目前本领域技术人员需要解决的问题。
技术实现思路
有鉴于此,本专利技术的目的在于提供一种电平转换方法、系统、装置及可读存储介质,以达到快速转换电平的效果。其具体方案如下:一种电平转换方法,包括:将输入引脚与CPLD中对应的输入接口连接;将输出引脚与所述CPLD中对应的输出接口连接;根据所述CPLD的内部对应关系通过所述输出接口输出相应的电平;其中,所述内部对应关系包括所述输入接口的电平与所述输出接口的电平 ...
【技术保护点】
1.一种电平转换方法,其特征在于,包括:将输入引脚与CPLD中对应的输入接口连接;将输出引脚与所述CPLD中对应的输出接口连接;根据所述CPLD的内部对应关系通过所述输出接口输出相应的电平;其中,所述内部对应关系包括所述输入接口的电平与所述输出接口的电平之间的对应关系。
【技术特征摘要】
1.一种电平转换方法,其特征在于,包括:将输入引脚与CPLD中对应的输入接口连接;将输出引脚与所述CPLD中对应的输出接口连接;根据所述CPLD的内部对应关系通过所述输出接口输出相应的电平;其中,所述内部对应关系包括所述输入接口的电平与所述输出接口的电平之间的对应关系。2.根据权利要求1所述电平转换方法,其特征在于,所述将输入引脚与CPLD中对应的输入接口连接的过程,具体包括:将多个所述输入引脚分别与所述CPLD中对应的多个所述输入接口一一连接。3.根据权利要求1所述电平转换方法,其特征在于,所述将输出引脚与所述CPLD中对应的输出接口连接的过程,具体包括:将多个所述输出引脚分别与所述CPLD中对应的多个所述输出接口一一连接。4.根据权利要求1所述电平转换方法,其特征在于,所述内部对应关系为:所述CPLD中预设的所述输入接口与所述输出接口之间的电平对应关系。5.根据权利要求4所述电平转换方法,其特征在于,当所述CPLD中包括多个所述输入接口和/或多个所述输出接口,所述内部对应关系具体为:所述输入接口与所述输出接口一一对应的电平对应关系。6.根据权利要求4所述电平转换方法,其特征在于,当所述CPLD中包括多个所述输...
【专利技术属性】
技术研发人员:董超,刘栋,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。