OpenCores
URL https://opencores.org/ocsvn/sdhc-sc-core/sdhc-sc-core/trunk

Subversion Repositories sdhc-sc-core

[/] [sdhc-sc-core/] [trunk/] [grpSd/] [unitSdClockMaster/] [src/] [SdClockMaster.psl] - Rev 185

Compare with Previous | Blame | View Log

 -- PSL assertions for SdClockMaster

vunit vSdClockMaster(SdClockMaster) {
  default clock is (iClk'event and iClk='1');

  -- strobe at least one clock cycle before falling edge
  assert always ({oSdStrobe} |=> {not oSdStrobe; (not oSdStrobe and oSdCardClk)[*]; not oSdCardClk}) abort iRstSync;

  -- check oSdCardClk
  -- assert always (not oSdCardClk -> eventually! oSdCardClk) abort iDisable;
  assert always (not oSdCardClk -> { (not oSdCardClk)[*]; oSdCardClk}) abort iDisable;

  -- check disable
  assert always ({iDisable} |=> not oSdStrobe);
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.