Line 23... |
Line 23... |
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
//
|
//
|
// *File Name: registers.v
|
// *File Name: registers.v
|
//
|
//
|
// *Module Description:
|
// *Module Description:
|
// openMSP430 testbench
|
// Direct connections to internal registers & memory.
|
|
//
|
//
|
//
|
// *Author(s):
|
// *Author(s):
|
// - Olivier Girard, olgirard@gmail.com
|
// - Olivier Girard, olgirard@gmail.com
|
//
|
//
|
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
// $Rev: 111 $
|
// $Rev: 136 $
|
// $LastChangedBy: olivier.girard $
|
// $LastChangedBy: olivier.girard $
|
// $LastChangedDate: 2011-05-20 22:39:02 +0200 (Fri, 20 May 2011) $
|
// $LastChangedDate: 2012-03-22 22:14:16 +0100 (Thu, 22 Mar 2012) $
|
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
|
|
// CPU registers
|
// CPU registers
|
//======================
|
//======================
|
|
|
Line 148... |
Line 149... |
wire [15:0] irq_vect_02 = pmem[(1<<(`PMEM_MSB+1))-14]; // IRQ 2
|
wire [15:0] irq_vect_02 = pmem[(1<<(`PMEM_MSB+1))-14]; // IRQ 2
|
wire [15:0] irq_vect_01 = pmem[(1<<(`PMEM_MSB+1))-15]; // IRQ 1
|
wire [15:0] irq_vect_01 = pmem[(1<<(`PMEM_MSB+1))-15]; // IRQ 1
|
wire [15:0] irq_vect_00 = pmem[(1<<(`PMEM_MSB+1))-16]; // IRQ 0
|
wire [15:0] irq_vect_00 = pmem[(1<<(`PMEM_MSB+1))-16]; // IRQ 0
|
|
|
|
|
|
// Interrupt detection
|
|
wire nmi_detect = dut.openMSP430_0.frontend_0.nmi_pnd;
|
|
wire irq_detect = dut.openMSP430_0.frontend_0.irq_detect;
|
|
|
|
// Debug interface
|
|
wire dbg_en = dut.openMSP430_0.dbg_en;
|
|
wire dbg_clk = dut.openMSP430_0.clock_module_0.dbg_clk;
|
|
wire dbg_rst = dut.openMSP430_0.clock_module_0.dbg_rst;
|
|
|
|
|
// CPU internals
|
// CPU internals
|
//======================
|
//======================
|
|
|
wire mclk = dut.openMSP430_0.mclk;
|
wire mclk = dut.openMSP430_0.mclk;
|
wire puc_rst = dut.openMSP430_0.puc_rst;
|
wire puc_rst = dut.openMSP430_0.puc_rst;
|