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