简体   繁体   中英

SystemVerilog typedef equivalent in Verilog

Is there any construct I can use in Verilog that would be equal to SystemVerilog's typedef ?

I know that in SV I can create my own names for type definitions and use it when building up complicated array definitions. I know that typedef doesn't exist in Verilog standard (ie Verilog-1995). But is it possible to somehow bypass it?

Almost all current tools that support Verilog today also support the typedef construct in SystemVerilog. I would spend your time figuring out how to move to SystemVerilog rather than trying to workaround the lack of it in Verilog. The closest thing you could use in Verilog would be a `define statement.

SystemVerilog具有用户定义的数据类型,而Verilog没有。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM