Verified Commit 1325f446 authored by Minyong Li's avatar Minyong Li 💬
Browse files

MemoryReadIO: remove read enable

This reverts 585b1228.
parent 41900e5b
......@@ -20,9 +20,7 @@ class DataMemory(implicit cfg: CanCoreConfiguration) extends MultiIOModule {
else
Mem(cfg.dataMemoryWords, UInt(512.W))
when(read.en) {
read.data := mem(read.addr)
}
read.data := mem(read.addr)
when(write.en) {
mem(write.addr) := write.data
......
......@@ -40,9 +40,7 @@ class ProgramMemory(implicit cfg: CanCoreConfiguration) extends MultiIOModule {
cw := mem(pc)
when(read.en) {
read.data := mem(read.addr)
}
read.data := mem(read.addr)
when(write.en) {
mem(write.addr) := write.data
......
......@@ -6,7 +6,6 @@ package uk.ac.soton.ecs.can.types
import chisel3._
class MemoryReadIO(addrWidth: Int, dataWidth: Int) extends Bundle {
val en = Input(Bool())
val addr = Input(UInt(addrWidth.W))
val data = Output(UInt(dataWidth.W))
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment