1
0
sifive-blocks/vsrc/SRLatch.v

23 lines
327 B
Coq
Raw Normal View History

2016-11-29 13:08:44 +01:00
// See LICENSE for license details.
module SRLatch (
input set,
input reset,
output q
);
reg latch;
// synopsys async_set_reset "set"
// synopsys one_hot "set, reset"
always @(set or reset)
begin
if (set)
latch <= 1'b1;
else if (reset)
latch <= 1'b0;
end
assign q = latch;
endmodule