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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [bench/] [verilog/] [vpi/] [verilog/] [vpi_debug_module.v] - Diff between revs 40 and 46

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

Rev 40 Rev 46
Line 96... Line 96...
   integer jtag_instn_val;
   integer jtag_instn_val;
   integer set_chain_val;
   integer set_chain_val;
 
 
   reg [1:0] cpu_ctrl_val; // two important bits for the ctrl reg
   reg [1:0] cpu_ctrl_val; // two important bits for the ctrl reg
   reg [31:0] cmd_adr;
   reg [31:0] cmd_adr;
 
   reg [31:0]  cmd_size;
   reg [31:0] cmd_data;
   reg [31:0] cmd_data;
 
 
 
 
   initial
   initial
     begin
     begin
Line 226... Line 227...
 
 
                  $return_command_data(cmd_data);
                  $return_command_data(cmd_data);
 
 
               end
               end
 
 
             `CMD_WB_WR32 :
             `CMD_WB_WR :
               begin
               begin
 
 
                  $get_command_address(cmd_adr);
                  $get_command_address(cmd_adr);
 
 
 
                  $get_command_data(cmd_size);
 
 
                  $get_command_data(cmd_data);
                  $get_command_data(cmd_data);
 
 
 
                  case (cmd_size)
 
                    4 :
 
                      begin
                  wb_write_32(cmd_data, cmd_adr, 16'h3);
                  wb_write_32(cmd_data, cmd_adr, 16'h3);
 
                      end
 
                    2 :
 
                      begin
 
                         wb_write_16(cmd_data[15:0], cmd_adr, 16'h1);
 
                      end
 
                    1 :
 
                      begin
 
                         wb_write_8(cmd_data[7:0], cmd_adr, 16'h0);
 
                      end
 
                    default:
 
                      begin
 
                         $display("* vpi_debug_module: CMD_WB_WR size incorrect: %d\n", cmd_size);
 
                      end
 
                  endcase // case (cmd_size)
 
 
               end
               end
 
 
             `CMD_WB_RD32 :
             `CMD_WB_RD32 :
               begin
               begin

powered by: WebSVN 2.1.0

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