aboutsummaryrefslogtreecommitdiffstats
path: root/manual/PRESENTATION_ExSyn/proc_01.v
blob: 6128631955bb09ca2dac5d56133419d0db71e090 (plain)
1
2
3
4
5
6
7
module test(input D, C, R, output reg Q);
    always @(posedge C, posedge R)
        if (R)
	    Q <= 0;
	else
	    Q <= D;
endmodule