1
0
mirror of synced 2026-01-16 00:33:34 +00:00
Miodrag Milanovic 271ac28b41 Added test cases
2022-02-16 13:27:59 +01:00

9 lines
194 B
Verilog

module aldffe( input [0:3] d, input [0:3] ad, input clk, aload, en, output reg [0:3] q );
always @( posedge clk, posedge aload)
if (aload)
q <= ad;
else
if (en)
q <= d;
endmodule