Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
Platform-independent core collection
Commits
83907a7c
Commit
83907a7c
authored
Dec 15, 2022
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: removed duplicate Wishbone definitions header
parent
f70d37be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
77 deletions
+0
-77
if_wishbone_defs.svh
sim/wishbone/if_wishbone_defs.svh
+0
-77
No files found.
sim/wishbone/if_wishbone_defs.svh
deleted
100644 → 0
View file @
f70d37be
//
// Title : Software Wishbone master unit for testbenches
//
// File : wishbone_master_tb.v
// Author : Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
// Created : Tue Mar 23 12:19:36 2010
// Standard : Verilog 2001
//
`ifndef
__
IF_WB_DEFS_SVH
`define
__IF_WB_DEFS_SVH
`include
"gencores_sim_defs.svh"
typedef
enum
{
R_OK
=
0
,
R_ERROR
,
R_RETRY
}
wb_cycle_result_t
;
typedef
enum
{
CLASSIC
=
0
,
PIPELINED
=
1
}
wb_cycle_type_t
;
typedef
struct
{
uint64_t
a
;
uint64_t
d
;
bit
[
7
:
0
]
sel
;
int
size
;
}
wb_xfer_t
;
typedef
struct
{
int
rw
;
wb_cycle_type_t
ctype
;
wb_xfer_t
data
[$]
;
wb_cycle_result_t
result
;
}
wb_cycle_t
;
virtual
class
CWishboneAccessor
;
virtual
function
automatic
int
poll
()
;
return
0
;
endfunction
// poll
virtual
task
get
(
output
wb_cycle_t
xfer
)
;
endtask
// get
virtual
task
put
(
input
wb_cycle_t
xfer
)
;
endtask
// put
virtual
function
int
idle
()
;
return
0
;
endfunction
// idle
virtual
task
clear
()
;
endtask
endclass
// CWishboneAccessor
int
seed
=
0
;
function
automatic
int
probability_hit
(
real
prob
)
;
real
rand_val
;
rand_val
=
real
'
($
dist_uniform
(
seed
,
0
,
1000
))
/
1000.0
;
if
(
rand_val
<
prob
)
return
1
;
else
return
0
;
endfunction
// probability_hit
`endif
// `ifndef __IF_WB_DEFS_SV
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