source:
vis_dev/vis-2.3/models/debug/and2.v
@
38
Last change on this file since 38 was 36, checked in by , 13 years ago | |
---|---|
File size: 138 bytes |
Rev | Line | |
---|---|---|
[33] | 1 | module andgate(clk,a,b); |
2 | input clk; | |
3 | input a; | |
4 | input b; | |
5 | ||
6 | reg c; | |
7 | ||
8 | initial c = 0; | |
9 | ||
10 | ||
11 | always @(posedge clk) | |
12 | begin | |
[36] | 13 | c = a & b ; |
[33] | 14 | end |
15 | endmodule | |
16 | ||
17 |
Note: See TracBrowser
for help on using the repository browser.