Skip to content

Commit

Permalink
formatting using black
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed May 14, 2024
1 parent cca579a commit 6e5e59d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion verify/uvm-python/spi_ref_model/spi_ref_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def write_bus(self, tr):
# For example, to read the same resgiter uncomment the following lines
data = self.regs.read_reg_value(td.addr)
td = td.clone()
if td.addr in [self.regs.reg_name_to_address["ris"], self.regs.reg_name_to_address["STATUS"]]:
if td.addr in [
self.regs.reg_name_to_address["ris"],
self.regs.reg_name_to_address["STATUS"],
]:
# pass value as it is until logic of ris is implemented
pass
elif td.addr == self.regs.reg_name_to_address["RXDATA"]:
Expand Down
4 changes: 3 additions & 1 deletion verify/uvm-python/spi_seq_lib/spi_send_MISO_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ async def body(self):
# Add the sequqnce here
# you could use method send_req to send a write or read using the register name
# example for writing register by value > 5
await self.send_req(is_write=True, reg="CTRL", data_condition=lambda data: data == 0b111)
await self.send_req(
is_write=True, reg="CTRL", data_condition=lambda data: data == 0b111
)
for _ in range(self.num_data):
# wait received fifo not empty
self.clear_response_queue()
Expand Down
2 changes: 1 addition & 1 deletion verify/uvm-python/spi_seq_lib/spi_send_MOSI_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def body(self):
):
break

cycles_additional = 8*4
cycles_additional = 8 * 4
for _ in range(cycles_additional):
await self.send_nop()

Expand Down

0 comments on commit 6e5e59d

Please sign in to comment.