OpenFPGA/openfpga/test_blif/and_latch.v

24 lines
210 B
Coq
Raw Normal View History

`timescale 1ns / 1ps
module top(
clk,
a,
b,
c,
d);
input wire clk;
input wire a;
input wire b;
output wire c;
output reg d;
assign c = a & b;
always @(posedge clk) begin
d <= c;
end
endmodule