//----------------------------------------------------------------------------- // Title : Top-Level Verilog for Spartan-3 Starter Kit // Project : ECE 491 - Senior Design Project //----------------------------------------------------------------------------- // File : s3board.v // Author : John Nestor // Created : 09.08.2004 // Last modified : 08.04.2005 //----------------------------------------------------------------------------- // Description : // This file defines the input and output ports used to interface between the // different I/O devices on the Xilinx/Digilent Spartan-3 Starter Kit board. // Use this file along with constraints file "s3board.ucf" as a "wrapper" for // your designs by instantiating submodules inside this module. // // Note: unused ports must be "commented out" in the constraints file in // order for the design to compile and download properly. All of these // ports are initally commented out in the original s3board.ucf file. // You will need to remove the "#" comment character at the beginning of // each port that you are using. // // Ports currently excluded: VGA port, PS/2 port, SRAM // //----------------------------------------------------------------------------- // Modification history : // 11.08.2004 : created // 04.08.2005 : Modified port names for 7-segment output // 21.08.2005 : Slight changes to declarations //----------------------------------------------------------------------------- module s3board( clk, pb_in, sw_in, digit_enable_out, segment_out, segment_dp_out, led_out, rxd_in, txd_out ); input clk; // 50MHz clock from board input [3:0] pb_in; // active-high pushbuttons (BTN3-BTN0) input [7:0] sw_in; // active-high slide switches (SW7-SW0) output [3:0] digit_enable_out; // active-low enable for the four // 7-seg display units (AN3-AN0) output [6:0] segment_out; // active-low segments a (6) - g (0) - // shared between the four displays output segment_dp_out; // active-low segment decimal point - // shared between the four displays output [7:0] led_out; // 8 active-high LEDs (LD7-LD0) input rxd_in; // RS-232 port data in output txd_out; // RS-232 port data out //--------------------------------------------------------------------------- // Add signal declarations here //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // Add module instantiations and/or behavioral code here //--------------------------------------------------------------------------- endmodule // s3board