在QuestaSIM用户手册版本10.5A它是336页指出:如何在AMS中将多个对象类型驱动到网上?
In the most recent SystemVerilog standard (Std IEEE 1800-2012), two important concepts were established:
User-Defined Nettype (UDN) — UDN allows a definition of a net type that can carry arbitrarily complex data using a built-in type (such as real) or a user-defined type (such as struct). Consequently, UDN is a generalization of the wreal net type from Verilog-AMS. In order to allow connectivity of models that rely on UDNs, a more generic connectivity mechanism is needed—the interconnect object.
但他们真的不指定UDN是如何构建的。 'nettype'和'interconnect'的语法似乎与这个描述非常接近,但都不能满足它 - 我不能分配互连,而且我无法将自己的类型与nettype一起使用。我正在创建一个模型,需要将用户定义的对象驱动到规范中定义的UDN上。
module SomeModel(output nettype ObjectContainingProperties outputToInterconnect);
class ObjectContainingProperties;
endclass
ObjectContainingProperties ocp;
assign outputToInterconnect=ocp;
initial begin
ocp=new();
end
endmodule
,但我得到的错误:
QuestaSim-64 vlog 10.5a Compiler 2016.04 Apr 4 2016
Start time: 18:55:05 on Dec 19,2016
vlog -ams -wireasinterconnect SomeModel.sv
-- Compiling module SomeModel
** Error: (vlog-13069) SomeModel.sv(11): near "nettype": syntax error, unexpected nettype, expecting IDENTIFIER.
如何创建和附加一个对象到UDN - 什么是语法?或者我如何可靠地将不同类型的物体驱动到网络上?
您引用的文本不是IEEE 1800-2012标准。你看过_6.6.7用户定义的nettypes_中的例子吗? –
我在编辑时不小心剪掉了问题的顶部。我不确定它是否值得为此付出代价,我纠正了它。 – Joe
做哟有IEEE 1800-2012手册吗? –