Skip to content
Pepijn de Vos edited this page Nov 17, 2024 · 4 revisions

The Gowin OSC (On-Chip) programmable crystal oscillator provides a clock source for MSPI programming mode, as well as a clock resource for user designs. It allows up to 64 different clock frequencies to be obtained by setting the FREQ_DIV parameter, which is an even number from 2 to 128 and 3, and is used in conjunction with the OSC oscillation frequency (fosc) to calculate the output clock frequency (fCLKOUT = fosc/FREQ_DIV).

This device is supported in Apicula.

Ports

Port Size Direction
OSCOUT 1 output

Parameters

Parameter Default Value
DEVICE GW1N-4
FREQ_DIV 100 (0b00000000000000000000000001100100)

Verilog Instantiation

OSC #(
    .DEVICE(DEVICE),
    .FREQ_DIV(FREQ_DIV)
) osc_inst (
    .OSCOUT(OSCOUT)
);

Clone this wiki locally