📄 leaf.v
字号:
// Test the reader's ability to instantiate external cells (leaf cells). The// scalarLeaf module is a fully-defined external module that does not appear// in the Verilog input. The noOrder module is an external module that does// not have terminal ordering information, however it is defined within the// Verilog input and it has hierarchy. The blackBox module is similar to the // noOrder module except that it does not have hierarchy and there is no// valid view defined for the blackBox module. The incomplete module has// the "in" and "out" terminals defined and ordered but the "aux" terminal// does not have order. The noTop module does not have a top module defined.module top(); wire a, b, c; wire [0:1] x; scalarLeaf I1(a, b), I2(.in(b), .out(a)); noOrder I3(a, b); blackBox1 I4(a, b); blackBox2 I5(a, b); incomplete I6(a, b, c); busLeaf I7(.Q(x)), I9(.Q({n1, n2})); busLeaf2 I10(x); noTop I11(.in(a), .out(b)); blackBox3 I12(.in(a), .out(b));endmodulemodule incomplete(input in, output out, inout aux); blackBox1 I0(in, out);endmodulemodule noOrder(.in(x), .out(y)); input x; output y; blackBox1 I0(x, y);endmodulemodule blackBox1(input in, output out);endmodulemodule blackBox2(.in(x), .out(y)); input x; output y;endmodulemodule busLeaf2(Q); inout [1:0] Q;endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -