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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [tA_compare.v] - Diff between revs 2 and 18

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 2 Rev 18
/*===========================================================================*/
/*===========================================================================*/
/* Copyright (C) 2001 Authors                                                */
/* Copyright (C) 2001 Authors                                                */
/*                                                                           */
/*                                                                           */
/* This source file may be used and distributed without restriction provided */
/* This source file may be used and distributed without restriction provided */
/* that this copyright statement is not removed from the file and that any   */
/* that this copyright statement is not removed from the file and that any   */
/* derivative work contains the original copyright notice and the associated */
/* derivative work contains the original copyright notice and the associated */
/* disclaimer.                                                               */
/* disclaimer.                                                               */
/*                                                                           */
/*                                                                           */
/* This source file is free software; you can redistribute it and/or modify  */
/* This source file is free software; you can redistribute it and/or modify  */
/* it under the terms of the GNU Lesser General Public License as published  */
/* it under the terms of the GNU Lesser General Public License as published  */
/* by the Free Software Foundation; either version 2.1 of the License, or    */
/* by the Free Software Foundation; either version 2.1 of the License, or    */
/* (at your option) any later version.                                       */
/* (at your option) any later version.                                       */
/*                                                                           */
/*                                                                           */
/* This source is distributed in the hope that it will be useful, but WITHOUT*/
/* This source is distributed in the hope that it will be useful, but WITHOUT*/
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     */
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     */
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public       */
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public       */
/* License for more details.                                                 */
/* License for more details.                                                 */
/*                                                                           */
/*                                                                           */
/* You should have received a copy of the GNU Lesser General Public License  */
/* You should have received a copy of the GNU Lesser General Public License  */
/* along with this source; if not, write to the Free Software Foundation,    */
/* along with this source; if not, write to the Free Software Foundation,    */
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA        */
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA        */
/*                                                                           */
/*                                                                           */
/*===========================================================================*/
/*===========================================================================*/
/*                                  TIMER A                                  */
/*                                  TIMER A                                  */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* Test the timer A:                                                         */
/* Test the timer A:                                                         */
/*                        - Check the timer compare features.                */
/*                        - Check the timer compare features.                */
 
/*                                                                           */
 
/* Author(s):                                                                */
 
/*             - Olivier Girard,    olgirard@gmail.com                       */
 
/*                                                                           */
 
/*---------------------------------------------------------------------------*/
 
/* $Rev: 17 $                                                                */
 
/* $LastChangedBy: olivier.girard $                                          */
 
/* $LastChangedDate: 2009-08-04 23:15:39 +0200 (Tue, 04 Aug 2009) $          */
/*===========================================================================*/
/*===========================================================================*/
 
 
integer my_counter;
integer my_counter;
always @ (posedge mclk)
always @ (posedge mclk)
  my_counter <=  my_counter+1;
  my_counter <=  my_counter+1;
 
 
 
 
initial
initial
   begin
   begin
      $display(" ===============================================");
      $display(" ===============================================");
      $display("|                 START SIMULATION              |");
      $display("|                 START SIMULATION              |");
      $display(" ===============================================");
      $display(" ===============================================");
      repeat(5) @(posedge mclk);
      repeat(5) @(posedge mclk);
      stimulus_done = 0;
      stimulus_done = 0;
 
 
      // TIMER A TEST:  UP MODE
      // TIMER A TEST:  UP MODE
      //--------------------------------------------------------
      //--------------------------------------------------------
 
 
      @(mem200 === 16'h0001);  // Check Comparator 0
      @(mem200 === 16'h0001);  // Check Comparator 0
      @(posedge ta_out0);
      @(posedge ta_out0);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h2) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
      if (my_counter !== 32'h2) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
 
 
      @(negedge ta_out0);
      @(negedge ta_out0);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h2) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
      if (my_counter !== 32'h2) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
      @(posedge ta_out0);
      @(posedge ta_out0);
      if (my_counter !== 32'h2C) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
      if (my_counter !== 32'h2C) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
 
 
      @(posedge irq_ta0);
      @(posedge irq_ta0);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h2) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
      if (my_counter !== 32'h2) tb_error("====== TIMER_A COMPARE 0: UP MODE =====");
 
 
 
 
      @(mem200 === 16'h0002);  // Check Comparator 1
      @(mem200 === 16'h0002);  // Check Comparator 1
      @(posedge ta_out1);
      @(posedge ta_out1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge ta_out0);
      @(posedge ta_out0);
      if (my_counter !== 32'h20) tb_error("====== TIMER_A COMPARE 1: UP MODE =====");
      if (my_counter !== 32'h20) tb_error("====== TIMER_A COMPARE 1: UP MODE =====");
 
 
      @(negedge ta_out1);
      @(negedge ta_out1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(negedge ta_out0);
      @(negedge ta_out0);
      if (my_counter !== 32'h20) tb_error("====== TIMER_A COMPARE 1: UP MODE =====");
      if (my_counter !== 32'h20) tb_error("====== TIMER_A COMPARE 1: UP MODE =====");
 
 
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge ta_out0);
      @(posedge ta_out0);
      if (my_counter !== 32'h20) tb_error("====== TIMER_A COMPARE 1: UP MODE =====");
      if (my_counter !== 32'h20) tb_error("====== TIMER_A COMPARE 1: UP MODE =====");
 
 
 
 
      @(mem200 === 16'h0003);  // Check Comparator 2
      @(mem200 === 16'h0003);  // Check Comparator 2
      @(posedge ta_out2);
      @(posedge ta_out2);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge ta_out0);
      @(posedge ta_out0);
      if (my_counter !== 32'h12) tb_error("====== TIMER_A COMPARE 2: UP MODE =====");
      if (my_counter !== 32'h12) tb_error("====== TIMER_A COMPARE 2: UP MODE =====");
 
 
      @(negedge ta_out2);
      @(negedge ta_out2);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(negedge ta_out0);
      @(negedge ta_out0);
      if (my_counter !== 32'h12) tb_error("====== TIMER_A COMPARE 2: UP MODE =====");
      if (my_counter !== 32'h12) tb_error("====== TIMER_A COMPARE 2: UP MODE =====");
 
 
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge ta_out0);
      @(posedge ta_out0);
      if (my_counter !== 32'h12) tb_error("====== TIMER_A COMPARE 2: UP MODE =====");
      if (my_counter !== 32'h12) tb_error("====== TIMER_A COMPARE 2: UP MODE =====");
 
 
 
 
      // TIMER A TEST:  CONTINUOUS MODE
      // TIMER A TEST:  CONTINUOUS MODE
      //--------------------------------------------------------
      //--------------------------------------------------------
 
 
      @(mem200 === 16'h0001);
      @(mem200 === 16'h0001);
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h000A) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 1 =====");
      if (mem206 !== 16'h000A) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 1 =====");
 
 
      @(posedge ta_out0);
      @(posedge ta_out0);
      if (my_counter !== 32'h60) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 1 =====");
      if (my_counter !== 32'h60) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 1 =====");
 
 
      @(posedge ta_out1);
      @(posedge ta_out1);
      if (my_counter !== 32'hC0) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 1 =====");
      if (my_counter !== 32'hC0) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 1 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0002) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 1 =====");
      if (mem206 !== 16'h0002) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 1 =====");
 
 
      @(posedge ta_out2);
      @(posedge ta_out2);
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 1 =====");
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 1 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0004) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 1 =====");
      if (mem206 !== 16'h0004) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 1 =====");
 
 
 
 
      @(mem200 === 16'h0002);
      @(mem200 === 16'h0002);
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h000A) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 2 =====");
      if (mem206 !== 16'h000A) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 2 =====");
 
 
      @(posedge irq_ta0);
      @(posedge irq_ta0);
      if (my_counter !== 32'h60) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 2 =====");
      if (my_counter !== 32'h60) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 2 =====");
 
 
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'hC0) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 2 =====");
      if (my_counter !== 32'hC0) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 2 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0002) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 2 =====");
      if (mem206 !== 16'h0002) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 2 =====");
 
 
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 2 =====");
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 2 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0004) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 2 =====");
      if (mem206 !== 16'h0004) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 2 =====");
 
 
 
 
 
 
      // TIMER A TEST:  UP-DOWN MODE
      // TIMER A TEST:  UP-DOWN MODE
      //--------------------------------------------------------
      //--------------------------------------------------------
 
 
      @(mem200 === 16'h0001);
      @(mem200 === 16'h0001);
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(posedge ta_out2);
      @(posedge ta_out2);
      if (my_counter !== 32'h60)  tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 1 =====");
      if (my_counter !== 32'h60)  tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 1 =====");
      @(posedge ta_out1);
      @(posedge ta_out1);
      if (my_counter !== 32'hC0)  tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 1 =====");
      if (my_counter !== 32'hC0)  tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 1 =====");
      @(posedge ta_out0);
      @(posedge ta_out0);
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 1 =====");
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 1 =====");
 
 
      @(negedge ta_out1);
      @(negedge ta_out1);
      if (my_counter !== 32'h180) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 2 =====");
      if (my_counter !== 32'h180) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 2 =====");
      @(negedge ta_out2);
      @(negedge ta_out2);
      if (my_counter !== 32'h1E0) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 2 =====");
      if (my_counter !== 32'h1E0) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 2 =====");
      @(negedge ta_out0);
      @(negedge ta_out0);
      if (my_counter !== 32'h360) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 2 =====");
      if (my_counter !== 32'h360) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 2 =====");
 
 
 
 
      @(mem200 === 16'h0002);
      @(mem200 === 16'h0002);
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      @(negedge mclk);
      @(negedge mclk);
      my_counter = 0;
      my_counter = 0;
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h000A)    tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 3 =====");
      if (mem206 !== 16'h000A)    tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 3 =====");
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h60)  tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 3 =====");
      if (my_counter !== 32'h60)  tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 3 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0004)    tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 3 =====");
      if (mem206 !== 16'h0004)    tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 3 =====");
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'hC0)  tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 3 =====");
      if (my_counter !== 32'hC0)  tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 3 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0002)    tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 3 =====");
      if (mem206 !== 16'h0002)    tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 3 =====");
      @(posedge irq_ta0);
      @(posedge irq_ta0);
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 3 =====");
      if (my_counter !== 32'h120) tb_error("====== TIMER_A COMPARE 0: CONTINUOUS MODE - TEST 3 =====");
 
 
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h180) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 4 =====");
      if (my_counter !== 32'h180) tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 4 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0002)    tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 4 =====");
      if (mem206 !== 16'h0002)    tb_error("====== TIMER_A COMPARE 1: CONTINUOUS MODE - TEST 4 =====");
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h1E0) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 4 =====");
      if (my_counter !== 32'h1E0) tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 4 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h0004)    tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 4 =====");
      if (mem206 !== 16'h0004)    tb_error("====== TIMER_A COMPARE 2: CONTINUOUS MODE - TEST 4 =====");
      @(posedge irq_ta1);
      @(posedge irq_ta1);
      if (my_counter !== 32'h240) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 4 =====");
      if (my_counter !== 32'h240) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 4 =====");
      @(negedge irq_ta1);
      @(negedge irq_ta1);
      repeat(10) @(negedge mclk);
      repeat(10) @(negedge mclk);
      if (mem206 !== 16'h000A)    tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 4 =====");
      if (mem206 !== 16'h000A)    tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 4 =====");
      @(posedge irq_ta0);
      @(posedge irq_ta0);
      if (my_counter !== 32'h360) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 4 =====");
      if (my_counter !== 32'h360) tb_error("====== TIMER_A COMPARE: CONTINUOUS MODE - TEST 4 =====");
 
 
 
 
      // TIMER A TEST:  CCI INPUT LATCHING (SCCI)
      // TIMER A TEST:  CCI INPUT LATCHING (SCCI)
      //--------------------------------------------------------
      //--------------------------------------------------------
 
 
      @(r15 === 16'h4000);
      @(r15 === 16'h4000);
      if (mem202 !== 16'h3088) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
      if (mem202 !== 16'h3088) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
      if (mem204 !== 16'h3489) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
      if (mem204 !== 16'h3489) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
      if (mem206 !== 16'h2480) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
      if (mem206 !== 16'h2480) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
      if (mem208 !== 16'h2081) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
      if (mem208 !== 16'h2081) tb_error("====== TIMER_A COMPARE 0: CCI INPUT LATCHING (SCCI) =====");
 
 
      if (mem212 !== 16'h3088) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
      if (mem212 !== 16'h3088) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
      if (mem214 !== 16'h3489) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
      if (mem214 !== 16'h3489) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
      if (mem216 !== 16'h2480) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
      if (mem216 !== 16'h2480) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
      if (mem218 !== 16'h2081) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
      if (mem218 !== 16'h2081) tb_error("====== TIMER_A COMPARE 1: CCI INPUT LATCHING (SCCI) =====");
 
 
      if (mem222 !== 16'h3088) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
      if (mem222 !== 16'h3088) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
      if (mem224 !== 16'h3489) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
      if (mem224 !== 16'h3489) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
      if (mem226 !== 16'h2480) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
      if (mem226 !== 16'h2480) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
      if (mem228 !== 16'h2081) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
      if (mem228 !== 16'h2081) tb_error("====== TIMER_A COMPARE 2: CCI INPUT LATCHING (SCCI) =====");
 
 
      stimulus_done = 1;
      stimulus_done = 1;
   end
   end
 
 
 
 

powered by: WebSVN 2.1.0

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