Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
White Rabbit Trigger Distribution
Commits
a8188baf
Commit
a8188baf
authored
Jan 29, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: rename wrtd-system testbench to list
parent
2b48ab77
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
32 deletions
+32
-32
Makefile
hdl/testbench/Makefile
+1
-1
.gitignore
hdl/testbench/list/.gitignore
+0
-0
Manifest.py
hdl/testbench/list/Manifest.py
+0
-0
list_driver.svh
hdl/testbench/list/list_driver.svh
+26
-26
main.sv
hdl/testbench/list/main.sv
+5
-5
run.do
hdl/testbench/list/run.do
+0
-0
run_ci.do
hdl/testbench/list/run_ci.do
+0
-0
synthesis_descriptor.vhd
hdl/testbench/list/synthesis_descriptor.vhd
+0
-0
No files found.
hdl/testbench/Makefile
View file @
a8188baf
...
...
@@ -3,7 +3,7 @@
#
# Author: Adam Wujek, CERN 2017
TB_DIRS
=
wrtd-system
TB_DIRS
=
list
test_results_xml
=
test_results.xml
.PHONY
:
$(TB_DIRS)
...
...
hdl/testbench/
wrtd-system
/.gitignore
→
hdl/testbench/
list
/.gitignore
View file @
a8188baf
File moved
hdl/testbench/
wrtd-system
/Manifest.py
→
hdl/testbench/
list
/Manifest.py
View file @
a8188baf
File moved
hdl/testbench/
wrtd-system/wrtd
_driver.svh
→
hdl/testbench/
list/list
_driver.svh
View file @
a8188baf
//
// unit name:
Wrtd
Driver
// unit name:
List
Driver
//
// description: A SystemVerilog Class to provide an abstraction of a complete
//
WRTD
system.
//
LIST
system.
//
//------------------------------------------------------------------------------
// Copyright CERN 2018
...
...
@@ -18,18 +18,18 @@
// and limitations under the License.
//------------------------------------------------------------------------------
`ifndef
__
WRTD
_DRIVER_INCLUDED
`define
__
WRTD
_DRIVER_INCLUDED
`ifndef
__
L
IST
_DRIVER_INCLUDED
`define
__
LIST
_DRIVER_INCLUDED
`include
"mock_turtle_driver.svh"
`define
WRTD
_HMQ_LOG_SLOT 0
`define
LIST
_HMQ_LOG_SLOT 0
typedef
struct
{
uint32_t
system
;
uint32_t
source_port
;
uint32_t
trigger
;
}
wrtd
_trig_id
;
}
list
_trig_id
;
typedef
struct
{
uint64_t
seconds
;
...
...
@@ -43,7 +43,7 @@ typedef enum {
OVERFLOW
=
1
,
NO_WR
=
2
,
TIMEOUT
=
3
}
wrtd
_log_miss_reason
;
}
list
_log_miss_reason
;
typedef
enum
{
RAW
=
(
1
<<
0
)
,
...
...
@@ -52,25 +52,25 @@ typedef enum {
FILTERED
=
(
1
<<
3
)
,
EXECUTED
=
(
1
<<
4
)
,
MISSED
=
(
1
<<
5
)
}
wrtd
_log_type
;
}
list
_log_type
;
typedef
enum
{
WRTD
_IN
=
2
,
WRTD
_OUT
=
6
}
wrtd
_log_origin
;
LIST
_IN
=
2
,
LIST
_OUT
=
6
}
list
_log_origin
;
class
Wrtd
LogMsg
;
wrtd
_log_origin
origin
;
wrtd
_log_type
ltype
;
class
List
LogMsg
;
list
_log_origin
origin
;
list
_log_type
ltype
;
uint32_t
seq
;
int
channel
;
wrtd
_trig_id
id
;
list
_trig_id
id
;
wr_timestamp
ts
;
wrtd
_log_miss_reason
miss_reason
;
list
_log_miss_reason
miss_reason
;
function
new
(
MQueueMsg
msg
)
;
this
.
origin
=
wrtd
_log_origin
'
(
msg
.
header
.
msg_id
)
;
this
.
ltype
=
wrtd
_log_type
'
(
msg
.
data
[
0
])
;
this
.
origin
=
list
_log_origin
'
(
msg
.
header
.
msg_id
)
;
this
.
ltype
=
list
_log_type
'
(
msg
.
data
[
0
])
;
this
.
seq
=
msg
.
data
[
1
]
;
this
.
channel
=
msg
.
data
[
2
]
;
this
.
id
.
system
=
msg
.
data
[
3
]
;
...
...
@@ -80,7 +80,7 @@ class WrtdLogMsg;
this
.
ts
.
ticks
=
msg
.
data
[
8
]
;
this
.
ts
.
frac
=
msg
.
data
[
9
]
;
if
(
this
.
ltype
==
MISSED
)
this
.
miss_reason
=
wrtd
_log_miss_reason
'
(
msg
.
data
[
10
])
;
this
.
miss_reason
=
list
_log_miss_reason
'
(
msg
.
data
[
10
])
;
else
this
.
miss_reason
=
NOT_MISSED
;
endfunction
// new
...
...
@@ -104,9 +104,9 @@ class WrtdLogMsg;
return
str
;
endfunction
// tostring
endclass
//
Wrtd
LogMsg
endclass
//
List
LogMsg
class
Wrtd
Driver
;
class
List
Driver
;
protected
string
name
;
protected
int
hmq_log_slot
;
protected
MockTurtleDriver
mt
;
...
...
@@ -145,10 +145,10 @@ class WrtdDriver;
endtask
// init
task
check_log_queue
(
int
core
)
;
Wrtd
LogMsg
log_msg
;
List
LogMsg
log_msg
;
MQueueMsg
msg
;
msg
=
new
(
core
,
`
WRTD
_HMQ_LOG_SLOT
)
;
while
(
mt
.
hmq_pending_messages
(
core
,
`
WRTD
_HMQ_LOG_SLOT
)
)
msg
=
new
(
core
,
`
LIST
_HMQ_LOG_SLOT
)
;
while
(
mt
.
hmq_pending_messages
(
core
,
`
LIST
_HMQ_LOG_SLOT
)
)
begin
mt
.
hmq_receive_message
(
msg
)
;
log_msg
=
new
(
msg
)
;
...
...
@@ -164,6 +164,6 @@ class WrtdDriver;
join
endtask
// update
endclass
//
Wrtd
Driver
endclass
//
List
Driver
`endif
// `ifndef __
WRTD
_DRIVER_INCLUDED
`endif
// `ifndef __
LIST
_DRIVER_INCLUDED
hdl/testbench/
wrtd-system
/main.sv
→
hdl/testbench/
list
/main.sv
View file @
a8188baf
...
...
@@ -23,7 +23,7 @@
// and limitations under the License.
//------------------------------------------------------------------------------
`include
"
wrtd
_driver.svh"
`include
"
list
_driver.svh"
`include
"vhd_wishbone_master.svh"
`timescale
1
ns
/
10
fs
...
...
@@ -242,7 +242,7 @@ module main;
const
uint64_t
mt_base
=
'h2_0000
;
//
//
WRTD
transmitter (TDC)
//
LIST
transmitter (TDC)
//
simple_tdc_driver
...
...
@@ -304,7 +304,7 @@ module main;
IMockTurtleIRQ
IrqMonitorA
(
`MT_ATTACH_IRQ
(
DUT_A
.
cmp_mock_turtle
))
;
Wrtd
Driver
drvA
;
List
Driver
drvA
;
initial
begin
...
...
@@ -323,7 +323,7 @@ module main;
end
// initial begin DUTA
//
//
WRTD
receiver (Fine Delay)
//
LIST
receiver (Fine Delay)
//
simple_fdelay_mon
...
...
@@ -370,7 +370,7 @@ module main;
IMockTurtleIRQ
IrqMonitorB
(
`MT_ATTACH_IRQ
(
DUT_B
.
cmp_mock_turtle
))
;
Wrtd
Driver
drvB
;
List
Driver
drvB
;
initial
begin
...
...
hdl/testbench/
wrtd-system
/run.do
→
hdl/testbench/
list
/run.do
View file @
a8188baf
File moved
hdl/testbench/
wrtd-system
/run_ci.do
→
hdl/testbench/
list
/run_ci.do
View file @
a8188baf
File moved
hdl/testbench/
wrtd-system
/synthesis_descriptor.vhd
→
hdl/testbench/
list
/synthesis_descriptor.vhd
View file @
a8188baf
File moved
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