And gate¶
Problem statement¶
This circuit now has three wires (
a,b, andout). Wiresaandbalready have values driven onto them by the input ports. But wireoutcurrently is not driven by anything. Write anassignstatement that drivesoutwith the AND of signalsaandb.
Solution¶
- "&"是按位与
- "&&"是逻辑与