Skip to content

Commit

Permalink
refactor!: rename hwt HwModule._config/_declr/_impl to hwConfig/hwDeclr/
Browse files Browse the repository at this point in the history
* add override decorator
* Nic30/hwt#17
  • Loading branch information
Nic30 committed May 22, 2024
1 parent 86ad681 commit c4889ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/hwt/expected/decoder_using_case.py.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class decoder_using_case(HwModule):
-----------------------------------------------------

"""
def _declr(self):
def hwDeclr(self):
# ports
self.binary_in = HwIOSignal(HBits(5))
# 4 bit binary input
Expand All @@ -27,7 +27,7 @@ class decoder_using_case(HwModule):
self.enable = HwIOSignal()
# component instances

def _impl(self):
def hwImpl(self):
binary_in, decoder_out, enable = \
self.binary_in, self.decoder_out, self.enable
# internal signals
Expand Down
4 changes: 2 additions & 2 deletions tests/hwt/expected/uart.py.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class uart(HwModule):
-----------------------------------------------------

"""
def _declr(self):
def hwDeclr(self):
# ports
# Port declarations
self.reset = HwIOSignal()
Expand All @@ -36,7 +36,7 @@ class uart(HwModule):
self.rx_empty = HwIOSignal()._m()
# component instances

def _impl(self):
def hwImpl(self):
reset, txclk, ld_tx_data, tx_data, tx_enable, tx_out, tx_empty, rxclk, uld_rx_data, rx_data, rx_enable, \
rx_in, rx_empty = \
self.reset, self.txclk, self.ld_tx_data, self.tx_data, self.tx_enable, self.tx_out, self.tx_empty, self.rxclk, self.uld_rx_data, self.rx_data, self.rx_enable, \
Expand Down

0 comments on commit c4889ef

Please sign in to comment.