ci_nand.v
来自「周立功:SOPC嵌入式系统实验教程(一)部分章节及实验代码」· Verilog 代码 · 共 20 行
V
20 行
// Verilog Custom Instruction Template File for Combinatorial Logic
module ci_nand(
dataa, // Operand A (always required)
datab, // Operand B (optional)
result // result (always required)
);
//INPUTS
input [31:0] dataa;
input [31:0] datab;
//OUTPUTS
output [31:0] result;
// custom instruction logic (note: no external interfaces are allowed in combinatorial logic)
assign result = ~(dataa&datab);
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?