File: set.v

package info (click to toggle)
prjtrellis 1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 83,036 kB
  • sloc: cpp: 20,813; python: 16,246; sh: 375; makefile: 262; asm: 80; ansic: 58
file content (7 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
module top(input clk, d, set, output reg q);
    always @(posedge clk)
           if (set)
                q <= 1'b1;
           else
                q <= d;
endmodule