Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 595 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 595 Bytes

wb_common

wb_common is a set of constants and function that can be used for anyone implementing a Wishbone-compatible device

Files

  • wb_common_params.v : Contains Wishbone constants
  • wb_common.v : Contains Wishbone utility functions

Functions

  • get_cycle_type(cti) : Returns 1 for burst cycles and 0 for classic cycles
  • wb_is_last(cti) : Returns 1 for last cycle of a burst or single cycle accesses. Returns 0 if more cycles are expected
  • wb_next_adr(adr, cti, bte, dw) : Calculates the next address for incrementing burst accesses. Returns adr for other accesses