reg32_ld.v

来自「A small MIPS R2000 implementation in VHD」· Verilog 代码 · 共 17 行

V
17
字号
module Reg32_LD(D, LD, Q, clk);

  input		[31:0] D;
  input		LD;
  output	[31:0] Q;
  input		clk;

  reg [31:0] Q;

  // register only loads new data if LD is asserted
  
  always @(posedge clk) begin
    if (LD) Q = D;
  end

endmodule

⌨️ 快捷键说明

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