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
cf989d9c
Commit
cf989d9c
authored
Aug 29, 2017
by
Jens Korinth
Browse files
Minor fix in valid signal
parent
77b40f09
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/scala/DecoupledDataSource.scala
View file @
cf989d9c
...
@@ -34,7 +34,7 @@ class DecoupledDataSource[T <: Data](gen: T,
...
@@ -34,7 +34,7 @@ class DecoupledDataSource[T <: Data](gen: T,
val
i
=
Reg
(
UInt
(
log2Ceil
(
if
(
repeat
)
size
else
size
+
1
).
W
))
// index
val
i
=
Reg
(
UInt
(
log2Ceil
(
if
(
repeat
)
size
else
size
+
1
).
W
))
// index
val
rom
=
Vec
.
tabulate
(
size
)(
n
=>
ds
(
n
))
// ROM with data
val
rom
=
Vec
.
tabulate
(
size
)(
n
=>
ds
(
n
))
// ROM with data
io
.
out
.
bits
:=
rom
(
i
)
// current index data
io
.
out
.
bits
:=
rom
(
i
)
// current index data
io
.
out
.
valid
:=
!
reset
&&
i
<
size
.
U
// valid until exceeded
io
.
out
.
valid
:=
!
reset
&&
(
i
<
size
.
U
)
// valid until exceeded
when
(
reset
)
{
when
(
reset
)
{
i
:=
0.
U
i
:=
0.
U
}
}
...
...
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