yosys/tests/sim/aldffe.v

9 lines
194 B
Verilog
Raw Normal View History

2022-02-15 02:35:53 -06:00
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