践行者的个人空间 https://blog.eetop.cn/946923 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

Mixed Language Boundary and Mapping Rules

已有 736 次阅读| 2013-5-19 10:44

ISim
Mixed Language Boundary and Mapping Rules
Note The following information is intended for advanced users.
General
The following restrictions apply to the boundaries between VHDL and Verilog design units/modules.
  •  The boundary between VHDL and Verilog is enforced at design unit level.
  •  A VHDL design is allowed to instantiate one or more Verilog modules.
  •  Instantiation of a Verilog UDP inside a VHDL design is not supported.
  •  A Verilog design can instantiate a VHDL component corresponding to a VHDL entity only. Instantiation of a VHDL configuration in a Verilog design is not supported.
Port Mapping
The following rules and limitations for port mapping are used in mixed language projects.
  •  Supported VHDL port types:
    •  IN
    •  OUT
    •  INOUT
    Note  Buffer and linkage ports of VHDL are not supported.
  •  Supported Verilog port types:
    •  INPUT
    •  OUTPUT
    •  INOUT
    Note Connection to bi-directional pass switches in Verilog are not supported.
  •  Unnamed Verilog ports are not allowed on mixed design boundary.
  •  The following table shows supported VHDL and Verilog data types for ports on the mixed language design boundary:
VHDL PortVerilog Port
bitnet
std_ulogicnet
std_logicnet
bit_vectorvector net
std_ulogic_vectorvector net
std_logic_vectorvector net
Note Verilog output port of type reg is supported on the mixed language boundary. On the boundary, an output reg port is treated as if it were an output net (wire) port.
Note Any other type found on mixed language boundary is considered an error.
Generics (Parameters) Mapping
Following VHDL generic types (and their Verilog equivalents) are supported.
  •  integer
  •  real
  •  string
  •  boolean
Note Any other generic type found on mixed language boundary is considered an error.
VHDL/Verilog Values Mapping
Verilog states are mapped to std_logic and bit as shown in the following table.
Verilogstd_logicbit
Z’Z’’0’
0’0’’0’
1’1’’1’
X’X’’0’
Note  Verilog strength is ignored. There is no corresponding mapping to strength in VHDL.
VHDL type bit is mapped to Verilog states in the following table.
bitVerilog
’0’0
’1’1
VHDL type std_logic is mapped to Verilog states in the following table.
std_logicVerilog
’U’X
’X’X
’0’0
’1’1
’Z’Z
’W’X
’L’0
’H’1
’-’X

点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 2

    粉丝
  • 0

    好友
  • 0

    获赞
  • 0

    评论
  • 86

    访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-3 02:33 , Processed in 0.026311 second(s), 13 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部