template.v
来自「多个Verilog和vhdl程序例子」· Verilog 代码 · 共 29 行
V
29 行
module top_module_name(port_list);
// port declarations go here
/* wire, reg, integer declarations,user task
and user function declarations go here*/
/* describe hardware with one or more: continuous assignments,
always blocks, module instantiations and gate instantiations */
// continuous assignment statement:
wire result_signal;
assign result_signal = expression;
// always block:
always @(event_expression)
begin
// procedural assignments
// if and case statements
// while, repeat, and for loops
// user task and user function calls
end
// module instantiation:
module_name instance_name (port_list);
// gate instantiation:
gate_name (port_list);
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?