background image

 

iCE40 Oscillator Usage Guide 

 

Technical Note 

 

© 2016-2020 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at 

www.latticesemi.com/legal

 

All other brand or product names are trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice. 

 

FPGA-TN-02008-1.7 

 

Appendix A: Design Entry 

The following examples illustrate oscillator primitive usage in Verilog. 

A.1. SB_LFOSC Usage in iCEcube2 Software 

Synthesis Attributes 

/* synthesis ROUTE_THROUGH_FABRIC = <value> */ 

Value: 
0: Use dedicated clock network. Default option. 
1: Use fabric routes. 

Verilog Instantiation 

SB_LFOSC OSCInst1 ( 
.CLKLFEN(ENCLKLF), 
.CLKLFPU(CLKLF_POWERUP), 
.CLKLF(CLKLF) 
) /* synthesis ROUTE_THROUGH_FABRIC= 1 */; //the value can be either 0 or 1 

A.2. SB_HFOSC Usage in iCEcube2 Software 

Synthesis Attributes 

/* synthesis ROUTE_THROUGH_FABRIC = <value> */ 

Value: 
0: Use dedicated clock network. Default option. 
1: Use fabric routes. 

Parameter Values 
The SB_HFOSC primitive has the following parameter options:  
Parameter CLKHF_DIV = "0b00" (default), "0b01", "0b10", "0b11" (Clock divider selection. 0b00 = 4 8 MHz, 0b01 = 24 MHz, 
0b10 = 12 MHz, 0b11 = 6 MHz) 

Verilog Instantiation 

SB_HFOSC OSCInst0 ( 
.CLKHFEN(ENCLKHF), 
.CLKHFPU(CLKHF_POWERUP), 
.CLKHF(CLKHF) 
) /* synthesis ROUTE_THROUGH_FABRIC= 1 */; //the value can be either 0 or 1 
defparam OSCInst0.CLKHF_DIV = "0b00"; 

A.3. LSOSC Usage in Lattice Radiant Software 

Verilog Instantiation 

LSOSC OSCInst1 ( 
.CLKLFEN(ENCLKLF), 
.CLKLFPU(CLKLF_POWERUP), 
.CLKLF(CLKLF) 
); 

Содержание iCE40 UltraLite

Страница 1: ...iCE40 Oscillator Usage Guide Technical Note FPGA TN 02008 1 7 December 2020...

Страница 2: ...th all faults and all risk associated with such information is entirely with Buyer Buyer shall not rely on any data and performance specifications or parameters provided herein Products sold by Lattic...

Страница 3: ...uction 5 1 1 Key Features 5 2 On Chip Oscillator Overview 5 3 I O Port Description 6 4 Connectivity Guideline 6 5 Power Management Options 8 Appendix A Design Entry 9 A 1 SB_LFOSC Usage in iCEcube2 So...

Страница 4: ...l other brand or product names are trademarks or registered trademarks of their respective holders The specifications and information herein are subject to change without notice 4 FPGA TN 02008 1 7 Ac...

Страница 5: ...illators are intended for general clocking of internal logic and state machines This document provides guidance to software engineers on integrating these two oscillator types using iCEcube2 or Lattic...

Страница 6: ...cillator After power up output is stable after 100 us Active High 4 Connectivity Guideline Both the low and high frequency oscillators can be used as a clock source and their outputs are available for...

Страница 7: ...or registered trademarks of their respective holders The specifications and information herein are subject to change without notice FPGA TN 02008 1 7 7 AP iCE40 24 MHz Reference Internal 10 kHz SB_LFO...

Страница 8: ...ademarks or registered trademarks of their respective holders The specifications and information herein are subject to change without notice 8 FPGA TN 02008 1 7 5 Power Management Options When disable...

Страница 9: ...ric routes Verilog Instantiation SB_LFOSC OSCInst1 CLKLFEN ENCLKLF CLKLFPU CLKLF_POWERUP CLKLF CLKLF synthesis ROUTE_THROUGH_FABRIC 1 the value can be either 0 or 1 A 2 SB_HFOSC Usage in iCEcube2 Soft...

Страница 10: ...of their respective holders The specifications and information herein are subject to change without notice 10 FPGA TN 02008 1 7 A 4 HSOSC Usage in Lattice Radiant Software Parameter Values The HSOSC p...

Страница 11: ...mers are as listed at www latticesemi com legal All other brand or product names are trademarks or registered trademarks of their respective holders The specifications and information herein are subje...

Страница 12: ...rch 2020 Section Change Summary All Added primitives for Lattice Radiant Software Disclaimers Added this section Revision 1 4 September 2017 Section Change Summary All Changed document number from TN1...

Страница 13: ...www latticesemi com...

Отзывы: