ir_cell.v
来自「VerilogHDL_advanced_digital_design_code_」· Verilog 代码 · 共 16 行
V
16 行
module IR_Cell (data_out, scan_out, data_in, scan_in, shiftIR, reset_bar, nTRST, clockIR, updateIR);
output data_out, scan_out;
input data_in, scan_in, shiftIR, reset_bar, nTRST, clockIR, updateIR;
reg data_out, scan_out;
parameter SR_value = 0;
wire S_R = reset_bar & nTRST;
always @ (posedge clockIR) scan_out <= shiftIR ? scan_in: data_in;
always @ (posedge updateIR or negedge S_R)
if (S_R == 0) data_out <= SR_value;
else data_out <= scan_out;
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?