Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
a88b2842
Commit
a88b2842
authored
Jul 29, 2019
by
Luis Vega
Committed by
Jared Roesch
Jul 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[VTA] [Chisel] make dram offset configurable for uops different than 4-bytes (#3654)
parent
6970fc30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
vta/hardware/chisel/src/main/scala/core/Core.scala
+3
-0
vta/hardware/chisel/src/main/scala/core/LoadUop.scala
+2
-1
No files found.
vta/hardware/chisel/src/main/scala/core/Core.scala
View file @
a88b2842
...
...
@@ -40,6 +40,9 @@ case class CoreParams (
outMemDepth
:
Int
=
512
,
instQueueEntries
:
Int
=
32
)
{
require
(
uopBits
%
8
==
0
,
s
"\n\n[VTA] [CoreParams] uopBits must be byte aligned\n\n"
)
}
case
object
CoreKey
extends
Field
[
CoreParams
]
...
...
vta/hardware/chisel/src/main/scala/core/LoadUop.scala
View file @
a88b2842
...
...
@@ -69,6 +69,7 @@ class LoadUop(debug: Boolean = false)(implicit p: Parameters) extends Module {
})
val
numUop
=
2
// store two uops per sram word
val
uopBits
=
p
(
CoreKey
).
uopBits
val
uopBytes
=
uopBits
/
8
val
uopDepth
=
p
(
CoreKey
).
uopMemDepth
/
numUop
val
dec
=
io
.
inst
.
asTypeOf
(
new
MemDecode
)
...
...
@@ -129,7 +130,7 @@ class LoadUop(debug: Boolean = false)(implicit p: Parameters) extends Module {
when
(
offsetIsEven
)
{
raddr
:=
io
.
baddr
+
dec
.
dram_offset
}
.
otherwise
{
raddr
:=
io
.
baddr
+
dec
.
dram_offset
-
4
.
U
raddr
:=
io
.
baddr
+
dec
.
dram_offset
-
uopBytes
.
U
}
}
.
elsewhen
(
state
===
sReadData
&&
xcnt
===
xlen
&&
xrem
=/=
0.
U
)
{
raddr
:=
raddr
+
xmax_bytes
...
...
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