decimator_1.v

来自「Vlerilog HDL高级数字设计源码」· Verilog 代码 · 共 15 行

V
15
字号
module decimator_1 (data_out, data_in, hold, clock, reset);
  parameter word_length = 8;
  output 	[word_length-1:0]		data_out;
  input	[word_length-1:0]		data_in;
  input 				hold;		// Active high
  input				clock;		// Positive edge  
  input				reset;		// Active high
  reg				data_out;
  always @ (posedge clock)
    if (reset) data_out <= 0;
    else if (hold) data_out <= data_out;
    else data_out <= data_in;
endmodule

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?