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
d428bf8c
Commit
d428bf8c
authored
Aug 24, 2017
by
Jens Korinth
Browse files
Improve debug output of DecoupledDataSource
parent
44b5908e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/DecoupledDataSource.scala
View file @
d428bf8c
...
...
@@ -22,9 +22,8 @@ class DecoupledDataSourceIO[T <: Data](gen: T) extends Bundle {
**/
class
DecoupledDataSource
[
T
<:
Data
](
gen
:
T
,
val
size
:
Int
,
val
data
:
(
Int
)
=>
T
,
val
repeat
:
Boolean
=
true
)
extends
Module
{
println
(
"DecoupledDataSource: size = %d, repeat = %s"
.
format
(
size
,
if
(
repeat
)
"true"
else
"false"
))
println
(
" width = %d"
.
format
(
log2Ceil
(
if
(
repeat
)
size
else
size
+
1
)))
println
(
"DecoupledDataSource: size = %d, repeat = %s, addrWidth = %d"
.
format
(
size
,
if
(
repeat
)
"true"
else
"false"
,
log2Ceil
(
if
(
repeat
)
size
else
size
+
1
)))
val
ds
=
for
(
i
<-
0
until
size
)
yield
data
(
i
)
// evaluate data to array
val
io
=
IO
(
new
DecoupledDataSourceIO
(
gen
))
// interface
...
...
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