Skip to content

Commit

Permalink
Fix fifo attribute in the register
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady authored May 2, 2024
1 parent 7605d4f commit be4d5f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bus_env/bus_regs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def init_regs(self):
"offset": 0xF00,
"size": size,
"mode": "w",
"fifo": "no",
"fifo": True, # it's not a fifo register but we need to disable it, since it might generate interrupts
"bit_access": "no",
"val": 0,
"delayed_val": 0,
Expand All @@ -56,7 +56,7 @@ def init_regs(self):
"offset": 0xF04,
"size": size,
"mode": "r",
"fifo": "no",
"fifo": False,
"bit_access": "no",
"val": 0,
"delayed_val": 0,
Expand All @@ -66,7 +66,7 @@ def init_regs(self):
"offset": 0xF08,
"size": size,
"mode": "r",
"fifo": "no",
"fifo": False,
"bit_access": "no",
"val": 0,
"delayed_val": 0,
Expand All @@ -76,7 +76,7 @@ def init_regs(self):
"offset": 0xF0C,
"size": size,
"mode": "w",
"fifo": "yes",
"fifo": True, # it's not a fifo register but it's self clear so we can't read the same value
"bit_access": "no",
"val": 0,
"delayed_val": 0,
Expand All @@ -98,7 +98,7 @@ def init_regs(self):
"offset": 0x1000 + fifo_count,
"size": 1,
"mode": "w",
"fifo": "no",
"fifo": True, # it's not a fifo register but it's self clear so we can't read the same value
"bit_access": "no",
"val": 0,
"delayed_val": 0,
Expand All @@ -108,7 +108,7 @@ def init_regs(self):
"offset": 0x1004 + fifo_count,
"size": reg_size,
"mode": "w",
"fifo": "no",
"fifo": False,
"bit_access": "no",
"val": 0,
"delayed_val": 0,
Expand All @@ -118,12 +118,12 @@ def init_regs(self):
"offset": 0x1008 + fifo_count,
"size": reg_size,
"mode": "r",
"fifo": "no",
"fifo": False,
"bit_access": "no",
"val": 0,
"delayed_val": 0,
}
fifo_count += 0x10 # add 16 to the address
fifo_count += 0x10 # add 16 to the address
self.data["registers"].append(reg_fifo_flush)
self.data["registers"].append(reg_fifo_threshold)
self.data["registers"].append(reg_fifo_level)
Expand Down

0 comments on commit be4d5f6

Please sign in to comment.