From 6b00e6ae789a2ab495795aa9a21d8ca25867b0ff Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Thu, 13 Jan 2022 00:19:01 +0000 Subject: [PATCH] Added a few TODOs --- src/spec/simple_gpio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spec/simple_gpio.py b/src/spec/simple_gpio.py index ac6089b..e69605a 100644 --- a/src/spec/simple_gpio.py +++ b/src/spec/simple_gpio.py @@ -118,6 +118,7 @@ def gpio_configure(dut, gpio, oe, output=0, bank_sel=0): print("Configuring CSR to {0:x}".format(csr_val)) yield from wb_write(dut.bus, gpio, csr_val) +# TODO: Return the configuration states def gpio_rd_csr(dut, gpio): csr_val = yield from wb_read(dut.bus, gpio) print("GPIO{0} | CSR: {1:x}".format(gpio, csr_val)) @@ -132,6 +133,7 @@ def gpio_rd_input(dut, gpio): def gpio_set_out(dut, gpio, output): yield from wb_write(dut.bus, gpio | (OADDR<