15 lines
279 B
Verilog
15 lines
279 B
Verilog
// Modeule: when buttons 1 and 2 are pressed, turn on LED
|
|
|
|
module and_gate (
|
|
// Inputs
|
|
input pmod_0,
|
|
input pmod_1,
|
|
|
|
// Outputs
|
|
output led_0
|
|
);
|
|
|
|
// Continuous assignment: not and and operators
|
|
assign led_0 = ~pmod_0 & ~pmod_1;
|
|
|
|
endmodule |