Asynchronous Preset (PRE) and Clear (CLR) are direct, overriding control inputs for Flip-Flops and Latches. They are necessary for us to control the starting state for these components, such as during device start-up.

These inputs are asynchronous it doesn’t matter whether clock is low or high, they still override the output Q immediately.

Example Control Input Setup for a D-latch:
![[D-LatchPresetClear.png|centre|486]] > Clear forces the output low regardless of the other inputs (S=0) > Preset forces the output high regardless of the other inputs (S=1)
const current = dv.current();
 
if (current && current.file.tags.some(t => t.toLowerCase() === "#topic")) {
    const inlinks = current.file.inlinks;
 
    // Split backlinks: general notes vs. lecture notes
    const lectureLinks = inlinks.where(l => l.path.includes("/Lecture Notes/"));
    const otherLinks = inlinks.where(l => !l.path.includes("/Lecture Notes/"));
 
    if (otherLinks.length > 0) {
        dv.header(4, "Links To This Page");
        dv.list(otherLinks);
    }
 
    if (lectureLinks.length > 0) {
        dv.header(4, "Referenced In Lecture Notes");
        dv.list(lectureLinks);
    }
}