1、选出正确的锁存器描述

A.module Latch (input D,E, output reg Q); always_latch if(E) Q=D; endmodule B.module Latch (input D,E, output reg Q); always@(E or D) if(E==1) Q=D; else Q=Q; endmodule C.module Latch (input D,E, output reg Q); always@(E or D) if(E==1) Q=D; endmodule D.module Latch (input D,E, output reg Q); always@(E or D) if(E==1) Q=D; else Q=0; endmodule

时间:2024-03-10 12:37:35

相似题目