-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed default slave value for all Slave AHB classes
Signed-off-by: Anderson Ignacio da Silva <[email protected]>
- Loading branch information
Showing
11 changed files
with
29 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 27.10.2023 | ||
# Last Modified Date: 07.09.2024 | ||
# Last Modified Date: 09.09.2024 | ||
import cocotb | ||
import logging | ||
import random | ||
|
@@ -152,7 +152,14 @@ async def _monitor_recv(self): | |
if first_st["phase"] == "addr": | ||
self._check_signals(first_txn) | ||
|
||
if self.bus.hready.value == 1: | ||
if self.bus.hready.value == 0: | ||
raise AssertionError( | ||
f"[{self.bus.name}/{self.name}] AHB PROTOCOL VIOLATION:" | ||
"A slave cannot request that the address phase is extended" | ||
"and therefore all slaves must be capable of sampling the address during this time" | ||
" - ARM IHI 0033B.b (ID102715) - Section 1.3" | ||
) | ||
else: | ||
first_st["phase"] = "data" | ||
|
||
def _check_inputs(self) -> bool: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.3.7" | ||
__version__ = "0.3.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 29.11.2023 | ||
# Last Modified Date: 09.09.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -60,7 +60,7 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
) | ||
|
||
ahb_slave = AHBSlave( | ||
AHBBus.from_entity(dut), dut.hclk, dut.hresetn, def_val=0, bp=bp_fn | ||
AHBBus.from_entity(dut), dut.hclk, dut.hresetn, bp=bp_fn | ||
) | ||
|
||
type(ahb_slave) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 14.06.2024 | ||
# Last Modified Date: 09.09.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -71,7 +71,7 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
) | ||
|
||
ahb_lite_slave = AHBLiteSlave( | ||
AHBBus.from_entity(dut), dut.hclk, dut.hresetn, def_val=0, bp=bp_fn | ||
AHBBus.from_entity(dut), dut.hclk, dut.hresetn, bp=bp_fn | ||
) | ||
|
||
type(ahb_lite_slave) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 02.09.2024 | ||
# Last Modified Date: 09.09.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -62,7 +62,7 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
) | ||
|
||
ahb_lite_slave = AHBLiteSlave( | ||
AHBBus.from_entity(dut), dut.hclk, dut.hresetn, def_val=0, bp=bp_fn | ||
AHBBus.from_entity(dut), dut.hclk, dut.hresetn, bp=bp_fn | ||
) | ||
|
||
type(ahb_lite_slave) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 15.06.2024 | ||
# Last Modified Date: 09.09.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -145,7 +145,6 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
AHBBus.from_entity(dut), | ||
dut.hclk, | ||
dut.hresetn, | ||
def_val=0, | ||
bp=bp_fn, | ||
mem_size=mem_size_kib * 1024, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 18.06.2024 | ||
# Last Modified Date: 09.09.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -80,7 +80,6 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
AHBBus.from_entity(dut), | ||
dut.hclk, | ||
dut.hresetn, | ||
def_val=0, | ||
bp=bp_fn, | ||
mem_size=mem_size_kib * 1024, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 25.12.2023 | ||
# Last Modified Date: 09.09.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -74,7 +74,6 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
AHBBus.from_entity(dut), | ||
dut.hclk, | ||
dut.hresetn, | ||
def_val=0, | ||
bp=bp_fn, | ||
mem_size=mem_size_kib * 1024, | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 29.11.2023 | ||
# Last Modified Date: 09.09.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -66,7 +66,6 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
AHBBus.from_entity(dut), | ||
dut.hclk, | ||
dut.hresetn, | ||
def_val=0, | ||
bp=bp_fn, | ||
mem_size=mem_size_kib * 1024, | ||
) | ||
|