Product Category: All
Family: Spartan3E
Device: XC3S500E
Package: FG320
Speed: -4
------- Verilog File: Multiplexer -------
[ MyMUX.v ]
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:24:07 01/20/2011
// Design Name:
// Module Name: MyMUX
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module MyMUX(
input d0, d1,
input s,
output y
);
assign y = s ? d1 : d0;
endmodule
[ MyMUX.ucf ]
# switch 0
NET "d0" LOC = "L13" | IOSTANDARD = LVTTL | PULLUP ;
# switch 1
NET "d1" LOC = "L14" | IOSTANDARD = LVTTL | PULLUP ;
# switch 2
NET "s" LOC = "H18" | IOSTANDARD = LVTTL | PULLUP ;
# led 0
NET "y" LOC = "F12" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8 ;
last update: January 20, 2011