Example of Unsynthesisable Verilog

The following section is a behavioural model of a dual edge-triggered flip-flop.

 

     module setclear(set, clear, q);

            input set, clear; output q;
            reg q;
          
            always @(posedge set) q = 1;

            always @(posedge clear) q = 0;


     endmodule