Skip to content

Commit

Permalink
Merge pull request #4021 from povik/booth-wallace
Browse files Browse the repository at this point in the history
Change `booth` architecture for improved delay, similar signed/unsigned results
  • Loading branch information
nakengelhardt authored Nov 27, 2023
2 parents 031ad38 + de16cd2 commit beaae79
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 293 deletions.
3 changes: 3 additions & 0 deletions kernel/rtlil.h
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,9 @@ struct RTLIL::SigSpec
RTLIL::SigSpec extract(int offset, int length = 1) const;
RTLIL::SigSpec extract_end(int offset) const { return extract(offset, width_ - offset); }

RTLIL::SigBit lsb() const { log_assert(width_); return (*this)[0]; };
RTLIL::SigBit msb() const { log_assert(width_); return (*this)[width_ - 1]; };

void append(const RTLIL::SigSpec &signal);
inline void append(Wire *wire) { append(RTLIL::SigSpec(wire)); }
inline void append(const RTLIL::SigChunk &chunk) { append(RTLIL::SigSpec(chunk)); }
Expand Down
Loading

0 comments on commit beaae79

Please sign in to comment.