lm32_top.v

changeset 26
73de224304c1
parent 8
07be9df9fee8
     1.1 --- a/lm32_top.v	Sun Mar 06 21:14:43 2011 +0000
     1.2 +++ b/lm32_top.v	Sat Aug 06 00:02:46 2011 +0100
     1.3 @@ -1,18 +1,39 @@
     1.4 -// =============================================================================
     1.5 -//                           COPYRIGHT NOTICE
     1.6 -// Copyright 2006 (c) Lattice Semiconductor Corporation
     1.7 -// ALL RIGHTS RESERVED
     1.8 -// This confidential and proprietary software may be used only as authorised by
     1.9 -// a licensing agreement from Lattice Semiconductor Corporation.
    1.10 -// The entire notice above must be reproduced on all authorized copies and
    1.11 -// copies may only be made to the extent permitted by a licensing agreement from
    1.12 -// Lattice Semiconductor Corporation.
    1.13 +//   ==================================================================
    1.14 +//   >>>>>>>>>>>>>>>>>>>>>>> COPYRIGHT NOTICE <<<<<<<<<<<<<<<<<<<<<<<<<
    1.15 +//   ------------------------------------------------------------------
    1.16 +//   Copyright (c) 2006-2011 by Lattice Semiconductor Corporation
    1.17 +//   ALL RIGHTS RESERVED 
    1.18 +//   ------------------------------------------------------------------
    1.19 +//
    1.20 +//   IMPORTANT: THIS FILE IS AUTO-GENERATED BY THE LATTICEMICO SYSTEM.
    1.21 +//
    1.22 +//   Permission:
    1.23 +//
    1.24 +//      Lattice Semiconductor grants permission to use this code
    1.25 +//      pursuant to the terms of the Lattice Semiconductor Corporation
    1.26 +//      Open Source License Agreement.  
    1.27 +//
    1.28 +//   Disclaimer:
    1.29  //
    1.30 -// Lattice Semiconductor Corporation        TEL : 1-800-Lattice (USA and Canada)
    1.31 -// 5555 NE Moore Court                            408-826-6000 (other locations)
    1.32 -// Hillsboro, OR 97124                     web  : http://www.latticesemi.com/
    1.33 -// U.S.A                                   email: techsupport@latticesemi.com
    1.34 -// =============================================================================/
    1.35 +//      Lattice Semiconductor provides no warranty regarding the use or
    1.36 +//      functionality of this code. It is the user's responsibility to
    1.37 +//      verify the userís design for consistency and functionality through
    1.38 +//      the use of formal verification methods.
    1.39 +//
    1.40 +//   --------------------------------------------------------------------
    1.41 +//
    1.42 +//                  Lattice Semiconductor Corporation
    1.43 +//                  5555 NE Moore Court
    1.44 +//                  Hillsboro, OR 97214
    1.45 +//                  U.S.A
    1.46 +//
    1.47 +//                  TEL: 1-800-Lattice (USA and Canada)
    1.48 +//                         503-286-8001 (other locations)
    1.49 +//
    1.50 +//                  web: http://www.latticesemi.com/
    1.51 +//                  email: techsupport@latticesemi.com
    1.52 +//
    1.53 +//   --------------------------------------------------------------------
    1.54  //                         FILE DETAILS
    1.55  // Project          : LatticeMico32
    1.56  // File             : lm32_top.v
    1.57 @@ -36,6 +57,11 @@
    1.58      // ----- Inputs -------
    1.59      clk_i,
    1.60      rst_i,
    1.61 +`ifdef CFG_DEBUG_ENABLED
    1.62 + `ifdef CFG_ALTERNATE_EBA
    1.63 +    at_debug,
    1.64 + `endif
    1.65 +`endif
    1.66      // From external devices
    1.67  `ifdef CFG_INTERRUPTS_ENABLED
    1.68      interrupt_n,
    1.69 @@ -110,6 +136,12 @@
    1.70  input clk_i;                                    // Clock
    1.71  input rst_i;                                    // Reset
    1.72  
    1.73 +`ifdef CFG_DEBUG_ENABLED
    1.74 + `ifdef CFG_ALTERNATE_EBA
    1.75 +   input at_debug;                              // GPIO input that maps EBA to DEBA
    1.76 + `endif
    1.77 +`endif
    1.78 +
    1.79  `ifdef CFG_INTERRUPTS_ENABLED
    1.80  input [`LM32_INTERRUPT_RNG] interrupt_n;        // Interrupt pins, active-low
    1.81  `endif
    1.82 @@ -249,6 +281,11 @@
    1.83      .clk_n_i               (clk_n),
    1.84  `endif
    1.85      .rst_i                 (rst_i),
    1.86 +`ifdef CFG_DEBUG_ENABLED
    1.87 + `ifdef CFG_ALTERNATE_EBA
    1.88 +    .at_debug              (at_debug),
    1.89 + `endif
    1.90 +`endif
    1.91      // From external devices
    1.92  `ifdef CFG_INTERRUPTS_ENABLED
    1.93      .interrupt_n           (interrupt_n),