Documente Academic
Documente Profesional
Documente Cultură
assign QQ = q_int;
endmodule
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FlipFlop tipo D con habilitación y entradas para reinicio y establecimiento síncrono
assign QQ = q_int;
endmodule
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FlipFlop tipo D con habilitación y entrada para reinicio síncrono
always@(posedge CLOCK)
begin CLOCK RESET ENABLE Qn+1
if (RESET)
q_int <= 1'b0;
↑ 1 X 0
else if (ENABLE) ↑ 0 0 Qn
q_int <= DD;
end ↑ 0 1 D
assign QQ = q_int;
endmodule
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FlipFlop tipo D con habilitación y entrada para reinicio síncrono activa bajo
`timescale 1ns / 1ps
module flip_flop_D(
input CLOCK, ENABLE,
input RESET,
input DD,
output QQ
);
always@(posedge CLOCK)
begin CLOCK RESET ENABLE Qn+1
if (!RESET)
↑ 0 X 0
q_int <= 1'b0;
else if (ENABLE) ↑ 1 0 Qn
q_int <= DD; ↑ 1 1 D
end
assign QQ = q_int;
endmodule
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx