Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Gateware
Commits
76e6aded
Commit
76e6aded
authored
Mar 05, 2013
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: try to reproduce gennum hang bug in simulation.
parent
87b58b49
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
323 additions
and
309 deletions
+323
-309
cmd0.vec
hdl/spec/sim/cmd0.vec
+42
-48
tb_spec.vhd
hdl/spec/sim/testbench/tb_spec.vhd
+2
-2
wave_datapath.do
hdl/spec/sim/wave_datapath.do
+132
-133
wave_gnum.do
hdl/spec/sim/wave_gnum.do
+147
-126
No files found.
hdl/spec/sim/cmd0.vec
View file @
76e6aded
...
...
@@ -165,34 +165,48 @@ wr 0000000020000028 F 00000000
-- DMA length
wr 000000002000002C F 00001000
-- Next item address (lsb)
wr 0000000020000030 F 200000
3
0
wr 0000000020000030 F 200000
4
0
-- Next item address (msb)
wr 0000000020000034 F 00000000
-- DMA attributes (from carrier to host, last item)
wr 0000000020000038 F 0000000
0
wr 0000000020000038 F 0000000
1
wait %d2000
-- DMA item stored in host memory
------------------------------
-- Carrier start address
wr 0000000020000040 F 00003000
-- Host start address (lsb)
wr 0000000020000044 F 40003000
-- Host start address (msb)
wr 0000000020000048 F 00000000
-- DMA length
wr 000000002000004C F 00001000
-- Next item address (lsb)
wr 0000000020000050 F 20000060
-- Next item address (msb)
wr 0000000020000054 F 00000000
-- DMA attributes (from carrier to host, last item)
wr 0000000020000058 F 00000001
-- DMA
-- DMA
item stored in host memory
------------------------------
-- Carrier start address
wr
FF00000000001008 F 00000
000
wr
0000000020000060 F 00004
000
-- Host start address (lsb)
wr
FF0000000000100C F 40000
000
wr
0000000020000064 F 40004
000
-- Host start address (msb)
wr
FF00000000001010
F 00000000
wr
0000000020000068
F 00000000
-- DMA length
wr
FF00000000001014
F 00001000
wr
000000002000006C
F 00001000
-- Next item address (lsb)
wr
FF00000000001018 F 2000000
0
wr
0000000020000070 F 2000008
0
-- Next item address (msb)
wr
FF0000000000101C
F 00000000
wr
0000000020000074
F 00000000
-- DMA attributes (from carrier to host, last item)
wr
FF00000000001020 F 00000001
-- Start DMA
--wr FF0000000001000 F 00000001
wr
0000000020000078 F 00000000
wait %d2000
wait %d100
-- onewire config
wr FF00000000001A04 F 007C0270
...
...
@@ -241,13 +255,13 @@ wr FF00000000001964 F 00008000
wr FF00000000001968 F 00000000
-- Enable test data and sampling clock
--
wr FF00000000001900 F 00000024
wr FF00000000001900 F 00000024
-- Enable sampling clock
wr FF00000000001900 F 00000004
--
wr FF00000000001900 F 00000004
-- start acquisition
--
wr FF00000000001900 F 00000025
wr FF00000000001900 F 00000005
wr FF00000000001900 F 00000025
--
wr FF00000000001900 F 00000005
wait %d800
-- sw trigger
...
...
@@ -269,7 +283,7 @@ wait %d800
-- sw trigger
--wr FF00000000001910 F FFFFFFFF
wait %d
7
00
wait %d
10
00
-- DMA
------------------------------
...
...
@@ -332,49 +346,29 @@ wait %d1000
-- FMC I2C (prescaler)
wr FF00000000080000 F 000000F9
rd FF00000000080000 F 000000F9 FFFFFFFF
--
wr FF00000000080000 F 000000F9
--
rd FF00000000080000 F 000000F9 FFFFFFFF
wait %d640
-- Carrier CSR (read carrier type and PCB version)
rd FF00000000030000 F 00010001 FFFFFFFF
--
rd FF00000000030000 F 00010001 FFFFFFFF
-- Carrier CSR (switch front panel LED ON)
wr FF00000000030010 F 00000003
rd FF00000000030010 F 00000003 FFFFFFFF
--
wr FF00000000030010 F 00000003
--
rd FF00000000030010 F 00000003 FFFFFFFF
wait %d640
-- FMC SPI (divider = 100)
wr FF00000000070014 F 00000064
--
wr FF00000000070014 F 00000064
-- FMC SPI (select ADC)
wr FF00000000070018 F 00000001
--
wr FF00000000070018 F 00000001
-- FMC SPI (data)
wr FF00000000070000 F 000081FF
--
wr FF00000000070000 F 000081FF
-- FMC SPI (ass, tx_neg, go, len=16)
wr FF00000000070010 F 00002510
--
wr FF00000000070010 F 00002510
wait %d300
-- DDR access trough DMA wishbone
wr 0000000020000000 F 00000000
wr 0000000020000004 F 40000000
wr 0000000020000008 F 00000000
-- DMA length
wr 000000002000000C F 000000C0
wr 0000000020000010 F 00000000
wr 0000000020000014 F 00000000
wr 0000000020000018 F 00000000
-- wrb FF00000010004004 F 00000000
wr FF00000000000008 F 00000000
wr FF0000000000000C F 40000000
wr FF00000000000010 F 00000000
-- DMA length
wr FF00000000000014 F 000000C0
wr FF00000000000018 F 20000000
wr FF0000000000001C F 00000000
wr FF00000000000020 F 00000003
wr FF00000000000000 F 00000001
-- Now read back what was just written
-- the following three reads will go out as a single request
...
...
hdl/spec/sim/testbench/tb_spec.vhd
View file @
76e6aded
...
...
@@ -46,7 +46,7 @@ architecture TEST of TB_SPEC is
generic
(
STRING_MAX
:
integer
:
=
256
;
-- Command string maximum length
T_LCLK
:
time
:
=
10
ns
;
-- Local Bus Clock Period
T_LCLK
:
time
:
=
5
ns
;
-- Local Bus Clock Period
T_P2L_CLK_DLY
:
time
:
=
2
ns
;
-- Delay from LCLK to P2L_CLK
INSTANCE_LABEL
:
string
:
=
"GN412X_BFM"
;
-- Label string to be used as a prefix for messages from the model
MODE_PRIMARY
:
boolean
:
=
true
-- TRUE for BFM acting as GN412x, FALSE for BFM acting as the DUT
...
...
@@ -492,7 +492,7 @@ begin
generic
map
(
STRING_MAX
=>
STRING_MAX
,
T_LCLK
=>
6
.
2
5
ns
,
T_LCLK
=>
5
ns
,
T_P2L_CLK_DLY
=>
2
ns
,
INSTANCE_LABEL
=>
"U0(Primary GN412x): "
,
MODE_PRIMARY
=>
true
...
...
hdl/spec/sim/wave_datapath.do
View file @
76e6aded
This diff is collapsed.
Click to expand it.
hdl/spec/sim/wave_gnum.do
View file @
76e6aded
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment