summaryrefslogtreecommitdiffstats
path: root/usrp2/models
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-04-15 17:55:22 -0700
committerMatt Ettus <matt@ettus.com>2010-04-15 17:55:22 -0700
commitbeccd823da07b7c8b8d95b4688c6e05732f66165 (patch)
treecfa42bcdf17e8abfd89a06266a43f31fb0c1957d /usrp2/models
parent449a420f4024004abc49f3a17d224910710def92 (diff)
downloaduhd-beccd823da07b7c8b8d95b4688c6e05732f66165.tar.gz
uhd-beccd823da07b7c8b8d95b4688c6e05732f66165.tar.bz2
uhd-beccd823da07b7c8b8d95b4688c6e05732f66165.zip
async seems to work with packet lengths now. Still need to do wishbone regs for gpmc
Diffstat (limited to 'usrp2/models')
-rw-r--r--usrp2/models/gpmc_model_async.v46
1 files changed, 34 insertions, 12 deletions
diff --git a/usrp2/models/gpmc_model_async.v b/usrp2/models/gpmc_model_async.v
index 64b596284..beeaee028 100644
--- a/usrp2/models/gpmc_model_async.v
+++ b/usrp2/models/gpmc_model_async.v
@@ -78,28 +78,50 @@ module gpmc_model_async
#1000000;
GPMC_Read(1,36);
#1000000;
- GPMC_Write(0,36,16'h1234);
- GPMC_Write(0,38,16'h5678);
- GPMC_Write(0,40,16'h9abc);
- GPMC_Write(0,11'h2F4,16'hF00D);
- GPMC_Write(0,11'h7FE,16'hDEAD);
- GPMC_Write(0,11'h7FE,16'hDEAD);
- GPMC_Write(0,11'h7FE,16'hDEAD);
- GPMC_Write(0,11'h7FE,16'hDEAD);
- GPMC_Write(0,11'h7FE,16'hDEAD);
- GPMC_Write(0,11'h7FE,16'hDEAD);
- #100000;
+ GPMC_Write(0,0,16'h1234);
+ GPMC_Write(0,0,16'h5678);
+ GPMC_Write(0,0,16'h9abc);
+ GPMC_Write(0,0,16'hF00D);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ #1000000;
+ GPMC_Write(0,0,16'h1234);
+ GPMC_Write(0,0,16'h5678);
+ GPMC_Write(0,0,16'h9abc);
+ GPMC_Write(0,0,16'hF00D);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'hDEAD);
+ GPMC_Write(0,0,16'h9876);
+ #1000000;
+ GPMC_Read(0,0);
+ GPMC_Read(0,0);
+ GPMC_Read(0,0);
+ GPMC_Read(0,0);
+ GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
+ #1000000;
+ GPMC_Read(0,0);
+ GPMC_Read(0,0);
+ GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
GPMC_Read(0,0);
- #100000;
+ GPMC_Read(0,0);
+ GPMC_Read(0,0);
+ #1000000;
GPMC_Read(0,0);
#100000000;
$finish;