source: vis_dev/vis-2.3/models/debug/and2.v @ 35

Last change on this file since 35 was 33, checked in by cecile, 13 years ago

add debug example

File size: 192 bytes
Line 
1module andgate(clk,a,b);
2input clk;
3input a;
4input b;
5
6reg c;
7wire x;
8wire y;
9
10initial c = 0;
11
12assign x = a & b;
13assign y = (a)?b:x;
14
15always @(posedge clk)
16begin
17        c = ~x + c;
18end
19endmodule 
20
21
Note: See TracBrowser for help on using the repository browser.