Created
December 11, 2017 00:19
-
-
Save davilamds/c6de9a3050a73e4dd150fcbc323040f3 to your computer and use it in GitHub Desktop.
comparador 1 bit verilog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module comparador1bit_verilog( | |
//declaración de entradas y salidas | |
input wire A, B; | |
output wire eq | |
); | |
//declaración de señales internas | |
wire p0, p1; | |
//comportamiento del módulo | |
assign eq= p0 | p1; | |
assign p0= ~A & ~B; | |
assign p1= A & B; | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment