OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [actel_m1a3pl_dev_kit/] [rtl/] [verilog/] [openmsp430/] [omsp_sfr.v] - Diff between revs 155 and 181

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 155 Rev 181
Line 35... Line 35...
//
//
// *Author(s):
// *Author(s):
//              - Olivier Girard,    olgirard@gmail.com
//              - Olivier Girard,    olgirard@gmail.com
//
//
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// $Rev: 154 $
// $Rev: 103 $
// $LastChangedBy: olivier.girard $
// $LastChangedBy: olivier.girard $
// $LastChangedDate: 2012-10-15 22:44:20 +0200 (Mon, 15 Oct 2012) $
// $LastChangedDate: 2011-03-05 15:44:48 +0100 (Sat, 05 Mar 2011) $
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
`ifdef OMSP_NO_INCLUDE
`ifdef OMSP_NO_INCLUDE
`else
`else
`include "openMSP430_defines.v"
`include "openMSP430_defines.v"
`endif
`endif
Line 297... Line 297...
 
 
//-----------------------------------
//-----------------------------------
// Pulse capture and synchronization
// Pulse capture and synchronization
//-----------------------------------
//-----------------------------------
`ifdef SYNC_NMI
`ifdef SYNC_NMI
  `ifdef ASIC
  `ifdef ASIC_CLOCKING
   // Glitch free reset for the event capture
   // Glitch free reset for the event capture
   reg    nmi_capture_rst;
   reg    nmi_capture_rst;
   always @(posedge mclk or posedge puc_rst)
   always @(posedge mclk or posedge puc_rst)
     if (puc_rst) nmi_capture_rst <= 1'b1;
     if (puc_rst) nmi_capture_rst <= 1'b1;
     else         nmi_capture_rst <= ifg1_wr & ~ifg1_nxt[4];
     else         nmi_capture_rst <= ifg1_wr & ~ifg1_nxt[4];
Line 349... Line 349...
 
 
// NMI pending
// NMI pending
wire        nmi_pnd   = nmiifg & nmie;
wire        nmi_pnd   = nmiifg & nmie;
 
 
// NMI wakeup
// NMI wakeup
`ifdef ASIC
`ifdef ASIC_CLOCKING
wire        nmi_wkup;
wire        nmi_wkup;
omsp_and_gate and_nmi_wkup (.y(nmi_wkup), .a(nmi_capture ^ nmi_dly), .b(nmie));
omsp_and_gate and_nmi_wkup (.y(nmi_wkup), .a(nmi_capture ^ nmi_dly), .b(nmie));
`else
`else
wire        nmi_wkup  = 1'b0;
wire        nmi_wkup  = 1'b0;
`endif
`endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.