source:
vis_dev/vis-2.3/models/debug/and2.v
@
40
Last change on this file since 40 was 36, checked in by , 13 years ago | |
---|---|
File size: 138 bytes |
Line | |
---|---|
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 |
13 | c = a & b ; |
14 | end |
15 | endmodule |
16 | |
17 |
Note: See TracBrowser
for help on using the repository browser.