From d95deed82a8562c44399acd8aee01f7c2b7e3f10 Mon Sep 17 00:00:00 2001
From: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
Date: Mon, 15 Aug 2011 01:39:37 +0200
Subject: [PATCH] simulation models: CBusAccessor: fixed default value of size
 parameters

---
 sim/simdrv_defs.svh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/sim/simdrv_defs.svh b/sim/simdrv_defs.svh
index 01d29a01..6fbf4be5 100644
--- a/sim/simdrv_defs.svh
+++ b/sim/simdrv_defs.svh
@@ -6,23 +6,27 @@ typedef longint unsigned uint64_t;
 typedef uint64_t u64_array_t[];
 typedef byte byte_array_t[];
 
+
+
+
 virtual class CBusAccessor;
    static int _null  = 0;
    
    pure virtual task writem(uint64_t addr[], uint64_t data[], input int size, ref int result);
    pure virtual task readm(uint64_t addr[], ref uint64_t data[], input int size, ref int result);
 
-   virtual task read(uint64_t addr, ref uint64_t data, input int size = 32, ref int result = _null);
+   virtual task read(uint64_t addr, ref uint64_t data, input int size = 4, ref int result = _null);
       int res;
-      
       uint64_t aa[], da[];
+
+   
       aa[0]  = addr;
       readm(aa, da, size, res);
       data  = da[0];
    endtask
 
 
-   virtual task write(uint64_t addr, uint64_t data, input int size = 32, ref int result = _null);
+   virtual task write(uint64_t addr, uint64_t data, input int size = 4, ref int result = _null);
       uint64_t aa[1], da[1];
       aa[0]  = addr;
       da[1]  = data;
-- 
GitLab