The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> 4-bit adder using pmos and nmos https://designers-guide.org/forum/YaBB.pl?num=1301294511 Message started by Claudiu on Mar 27th, 2011, 11:41pm |
Title: 4-bit adder using pmos and nmos Post by Claudiu on Mar 27th, 2011, 11:41pm Hello, I have to implement a 4-bit adder using only nmos and pmos...I am combining 3 NANDs and 3 invertors for this, but I am not allowed to put them in different modules. Here's the code I wrote: Code:
, but when I test it I get nothing but x and z at the output (except for the case when all inputs are 1 -> I get 1 at output). Any ideas why this doesn't work? Thanks, Claudiu Edit: the module works for only 2 bits, so I don't think NAND or the inversor is the problem, but the wiring between them (or some other aspect of Verilog that I'm not aware of) |
Title: Re: 4-bit adder using pmos and nmos Post by Claudiu on Mar 28th, 2011, 1:13am Sorry, my mistake, because of a copy-paste error (I put vss in some places where gnd should have been) |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |