Forum Discussion

RLou1's avatar
RLou1
Icon for New Contributor rankNew Contributor
7 years ago
Solved

Unavailable detection of clock edge stably

ENTITY For_V1 IS PORT( SCLK_SLAVER : IN std_logic; testpin : OUT std_logic ); END For_V1; ARCHITECTURE circuit OF For_V1 IS signal clk : std_logic:=SCLK_SLAVER; BEGIN process(SCLK_SLAVER...
  • Tricky's avatar
    7 years ago

    SCLK from I2C or SPI are notoriously bad for using as clocks It is much better to treat SCLK as any other signal and sample it inside the FPGA with a much faster clock, and use the edge of SCLK as a clock enable for your other registers that also use a proper system clock.