Skip to content

Commit

Permalink
fix #1 - Updated ahb monitor to sample on falling edge
Browse files Browse the repository at this point in the history
Signed-off-by: Anderson Ignacio <anderson@aignacio.com>
  • Loading branch information
aignacio committed Nov 12, 2023
1 parent 4b8262e commit ec792e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cocotbext/ahb/ahb_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# License : MIT license <Check LICENSE>
# Author : Anderson I. da Silva (aignacio) <anderson@aignacio.com>
# Date : 27.10.2023
# Last Modified Date: 27.10.2023
# Last Modified Date: 12.11.2023
import cocotb
import logging
import random
Expand All @@ -14,7 +14,7 @@
from .ahb_bus import AHBBus
from .version import __version__

from cocotb.triggers import RisingEdge
from cocotb.triggers import RisingEdge, FallingEdge
from cocotb.types import LogicArray
from cocotb.binary import BinaryValue
from typing import Optional, Union, Generator, List
Expand Down Expand Up @@ -51,7 +51,7 @@ async def _mon_master_txn(self):
stable_signals = {}

while True:
await RisingEdge(self.clk)
await FallingEdge(self.clk)

# print(f"pending: {pending}")
# Ensure master does not change its qualifiers before hready
Expand Down
2 changes: 1 addition & 1 deletion cocotbext/ahb/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.5"
__version__ = "0.1.6"
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# License : MIT license <Check LICENSE>
# Author : Anderson I. da Silva (aignacio) <anderson@aignacio.com>
# Date : 08.10.2023
# Last Modified Date: 26.10.2023
# Last Modified Date: 12.11.2023

import nox

Expand All @@ -13,7 +13,7 @@
def run(session):
session.env["DUT"] = "ahb_template"
session.env["SIM"] = "icarus"
# session.env['SIM'] = 'verilator'
# session.env['SIM'] = "verilator"
session.env["TIMEPREC"] = "1ps"
session.env["TIMEUNIT"] = "1ns"
session.install(
Expand Down
2 changes: 1 addition & 1 deletion ship.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker run -it --rm --name rtldev -v $(pwd):/cocotbext-ahb/ -w /cocotbext-ahb/ aignacio/rtldev bash
docker run -it --rm -v $(pwd):/cocotbext-ahb/ -w /cocotbext-ahb/ aignacio/rtldev bash

0 comments on commit ec792e4

Please sign in to comment.