15 lines
293 B
Plaintext
15 lines
293 B
Plaintext
# -*- mode: snippet -*-
|
|
# name: Back front detector
|
|
# key: -bfd
|
|
# --
|
|
// move this to your initialization section
|
|
logic bfd;
|
|
|
|
// do not forget to reset your bfd to the value of $1
|
|
|
|
// in register logic (always_ff)
|
|
bfd <= $1;
|
|
if (~$1 && bfd) begin
|
|
// do useful things here
|
|
end
|