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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [two-op_mov-b.v] - Diff between revs 19 and 111

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

Rev 19 Rev 111
Line 27... Line 27...
/*                                                                           */
/*                                                                           */
/* Author(s):                                                                */
/* Author(s):                                                                */
/*             - Olivier Girard,    olgirard@gmail.com                       */
/*             - Olivier Girard,    olgirard@gmail.com                       */
/*                                                                           */
/*                                                                           */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* $Rev: 19 $                                                                */
/* $Rev: 111 $                                                                */
/* $LastChangedBy: olivier.girard $                                          */
/* $LastChangedBy: olivier.girard $                                          */
/* $LastChangedDate: 2009-08-04 23:47:15 +0200 (Tue, 04 Aug 2009) $          */
/* $LastChangedDate: 2011-05-20 22:39:02 +0200 (Fri, 20 May 2011) $          */
/*===========================================================================*/
/*===========================================================================*/
 
 
initial
initial
   begin
   begin
      $display(" ===============================================");
      $display(" ===============================================");
Line 118... Line 118...
      // MOV.B: Check when source is @Rn+
      // MOV.B: Check when source is @Rn+
      //--------------------------------------------------------
      //--------------------------------------------------------
      @(r15==16'h4000);
      @(r15==16'h4000);
 
 
 
 
      if (r4     !==16'h0211) tb_error("====== MOV.B @Rn+ Rm    =====");
      if (r4     !==(`PER_SIZE+16'h0011)) tb_error("====== MOV.B @Rn+ Rm    =====");
      if (r5     !==16'h0033) tb_error("====== MOV.B @Rn+ Rm    =====");
      if (r5     !==16'h0033) tb_error("====== MOV.B @Rn+ Rm    =====");
      if (r6     !==16'h0214) tb_error("====== MOV.B @Rn+ Rm    =====");
      if (r6     !==(`PER_SIZE+16'h0014)) tb_error("====== MOV.B @Rn+ Rm    =====");
      if (r7     !==16'h0044) tb_error("====== MOV.B @Rn+ Rm    =====");
      if (r7     !==16'h0044) tb_error("====== MOV.B @Rn+ Rm    =====");
 
 
      if (mem210 !==16'haa22) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (mem210 !==16'haa22) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (mem212 !==16'h4455) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (mem212 !==16'h4455) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (mem214 !==16'h5a55) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (mem214 !==16'h5a55) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (mem216 !==16'h77a5) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (mem216 !==16'h77a5) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (r9     !==16'h0208) tb_error("====== MOV.B @Rn+ x(Rm) =====");
      if (r9     !==(`PER_SIZE+16'h0008)) tb_error("====== MOV.B @Rn+ x(Rm) =====");
 
 
      if (mem218 !==16'h11aa) tb_error("====== MOV.B @Rn+ EDE =====");
      if (mem218 !==16'h11aa) tb_error("====== MOV.B @Rn+ EDE =====");
      if (mem21A !==16'hccee) tb_error("====== MOV.B @Rn+ EDE =====");
      if (mem21A !==16'hccee) tb_error("====== MOV.B @Rn+ EDE =====");
      if (mem21C !==16'h1edd) tb_error("====== MOV.B @Rn+ EDE =====");
      if (mem21C !==16'h1edd) tb_error("====== MOV.B @Rn+ EDE =====");
      if (mem21E !==16'hffe1) tb_error("====== MOV.B @Rn+ EDE =====");
      if (mem21E !==16'hffe1) tb_error("====== MOV.B @Rn+ EDE =====");
      if (r10    !==16'h0208) tb_error("====== MOV.B @Rn+ EDE =====");
      if (r10    !==(`PER_SIZE+16'h0008)) tb_error("====== MOV.B @Rn+ EDE =====");
 
 
      if (mem220 !==16'h2233) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (mem220 !==16'h2233) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (mem222 !==16'h55dd) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (mem222 !==16'h55dd) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (mem224 !==16'h2d66) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (mem224 !==16'h2d66) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (mem226 !==16'h88d2) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (mem226 !==16'h88d2) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (r11    !==16'h0208) tb_error("====== MOV.B @Rn+ &EDE  =====");
      if (r11    !==(`PER_SIZE+16'h0008)) tb_error("====== MOV.B @Rn+ &EDE  =====");
 
 
 
 
      // MOV.B: Check when source is #N
      // MOV.B: Check when source is #N
      //--------------------------------------------------------
      //--------------------------------------------------------
      @(r15==16'h5000);
      @(r15==16'h5000);
Line 289... Line 289...
//      if (mem260 !==16'h02cc) tb_error("====== MOV.B #+2 &EDE =====");
//      if (mem260 !==16'h02cc) tb_error("====== MOV.B #+2 &EDE =====");
//      if (mem262 !==16'h04dd) tb_error("====== MOV.B #+4 &EDE =====");
//      if (mem262 !==16'h04dd) tb_error("====== MOV.B #+4 &EDE =====");
//      if (mem264 !==16'h08ee) tb_error("====== MOV.B #+8 &EDE =====");
//      if (mem264 !==16'h08ee) tb_error("====== MOV.B #+8 &EDE =====");
//      if (mem266 !==16'hff33) tb_error("====== MOV.B #-1 &EDE =====");
//      if (mem266 !==16'hff33) tb_error("====== MOV.B #-1 &EDE =====");
 
 
 
      #100;
 
 
      stimulus_done = 1;
      stimulus_done = 1;
   end
   end
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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