Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
8199d1c0
Commit
8199d1c0
authored
Aug 04, 2016
by
Jens Korinth
Browse files
Reduce default delays for AxiSlaveModel
parent
18cf7be1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/scala/AxiSlaveModelConfiguration.scala
View file @
8199d1c0
...
...
@@ -41,7 +41,7 @@ object AxiSlaveModelConfiguration {
* @param writeDelay simulated delay between write address handshake and data (default: 0).
**/
def
apply
(
addrWidth
:
Option
[
Int
]
=
None
,
dataWidth
:
Int
,
idWidth
:
Int
=
1
,
size
:
Option
[
Int
]
=
None
,
readDelay
:
Int
=
10
0
,
writeDelay
:
Int
=
60
0
)
=
{
size
:
Option
[
Int
]
=
None
,
readDelay
:
Int
=
3
0
,
writeDelay
:
Int
=
12
0
)
=
{
require
(!
size
.
isEmpty
||
!
addrWidth
.
isEmpty
,
"specify size or addrWidth, or both"
)
val
sz
:
Int
=
size
.
getOrElse
(
scala
.
math
.
pow
(
2
,
addrWidth
.
get
).
toInt
)
val
aw
:
Int
=
addrWidth
.
getOrElse
(
log2Up
(
size
.
get
*
dataWidth
/
8
).
toInt
)
...
...
Jens Korinth
@jk
mentioned in commit
17f0d672
·
Mar 05, 2018
mentioned in commit
17f0d672
mentioned in commit 17f0d67240ebf5d7e1d0be9162d272b04256c47d
Toggle commit list
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