amrit239 wrote
The CHIP design is straight forward.
...
I also tried by renaming `w1` to `nand`, `nandout` and `w` but still for (1,1) input values, out is 0.
I tried this and I can reproduce your error when I haven't implemented the Not gate. When I added the Not implementation, the And tests passed.
You should implement the chips in the order that is described in the book/course.
P.S. After checking that your And gate works, please remove the code from your posts.