📄 prep6.v
字号:
// PREP Benchmark 6, Sixteen Bit Accumulator
/* PREP6 contains a sixteen bit accumulator
Copyright (c) 1994 Synplicity, Inc.
You may distribute freely, as long as this header remains attached. */
module prep6(Q, CLK, RST, D);
output [15:0] Q;
input CLK, RST;
input [15:0] D;
reg [15:0] Q;
always @(posedge CLK or posedge RST)
begin
if (RST) Q = 0; // reset logic
else Q = Q + D; // accumulate
end
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -