首页> 外国专利> Method for translating conditional expressions from a non-verilog hardware description language to verilog hardware description language while preserving structure suitable for logic synthesis

Method for translating conditional expressions from a non-verilog hardware description language to verilog hardware description language while preserving structure suitable for logic synthesis

机译:将条件表达式从非Verilog硬件描述语言转换为Verilog硬件描述语言并同时保留适用于逻辑综合的结构的方法

摘要

A methodology for translating multiple bit conditional expressions of a non-Verilog hardware description language (HDL) program, not readily recognized by Verilog HDL, which can then be used to realize a logic circuit design embodied by the non-Verilog HDL program. Conditional IF expressions occurring within the HDL program that are not recognized by Verilog HDL are processed so that they can be accordingly translated to Verilog HDL syntax. If the conditional IF expression is a multiple-bit expression, a binary operator statement having bit-wise binary operators, including two AND operators, one OR operator, and one NOT operator, that is equivalent to the conditional IF expression is created. If either the THEN expr1 and/or the ELSE expr2 expressions are themselves multiple-bit expressions nested within the main multi-bit IF expression, then the nested multiple-bit expressions expr1 and/or expr2 in the binary operator statement must be replaced by the appropriate incremental variable(s) to create an always statement that can be translated to generate a Verilog HDL statement that is equivalent to the conditional expression. The nested multiple-bit expressions expr1 and/or expr2 are represented within the always statement by one or more corresponding incremental variables. Synthesis can then be performed on the always statement or on the binary operator statement, if there are no nested multiple-bit conditional expression, by a processor of a logic synthesis tool to generate a logic circuit representative of the non-Verilog HDL program.
机译:一种用于转换非Verilog HDL程序不容易识别的非Verilog硬件描述语言(HDL)程序的多位条件表达式的方法,然后可将其用于实现非Verilog HDL程序所体现的逻辑电路设计。处理在HDL程序中出现但未被Verilog HDL识别的条件IF表达式,以便可以将其相应地转换为Verilog HDL语法。如果条件IF表达式是多位表达式,则将创建一个具有按位二进制运算符的二进制运算符语句,其中包括两个AND运算符,一个OR运算符和一个NOT运算符,它们等效于条件IF表达式。如果THEN expr 1 和/或ELSE expr 2 表达式本身就是嵌套在主多位IF表达式中的多位表达式,则嵌套的多位表达式二进制运算符语句中的表达式expr 1 和/或expr 2 必须替换为适当的增量变量,以创建一个Always语句,该语句可以转换为生成一个Verilog HDL语句等效于条件表达式。嵌套的多位表达式expr 1 和/或expr 2 在Always语句中由一个或多个相应的增量变量表示。如果没有嵌套的多位条件表达式,则可以在always语句或二进制运算符语句上执行综合,然后由逻辑综合工具的处理器生成代表非Verilog HDL程序的逻辑电路。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号