Question.7
When attempting to execute this code, what is the expected result?
module size_test(input [1:0] a, output y);
wire [1:0] w;
not u1(w, a);
assign y = w[1];
endmodule
| n_input gates | n_output_gates | Three-state gates | Pull gates | MOS switches | Bidirectional switches |
|---|---|---|---|---|---|
| and | buf | bufif0 | pulldown | cmos | rtran |
| nand | not | bufif1 | pullup | nmos | rtranif0 |
| nor | notif0 | pmos | rtranif1 | ||
| or | notif1 | rcmos | tran | ||
| xnor | rnmos | tranif0 | |||
| xor | rpmos | tranif1 |
Basic combinational logic gates with n inputs (2 or more).
Single-input, multiple-output primitives.
Output can be 0, 1, or high-impedance (Z).
Provide weak constant logic values.
Model ideal MOS transistors (digital switch-level).
Transmission gates passing signals both ways.
👉 Rule of thumb for RTL design: