newStep.v
This commit is contained in:
35
RTL/CONFIGS/icesugarnano_config.v
Normal file
35
RTL/CONFIGS/icesugarnano_config.v
Normal file
@@ -0,0 +1,35 @@
|
||||
// Default femtosoc configuration file for iCESugar-nano (iCE40LP1KCM36)
|
||||
|
||||
/************************* Devices **********************************************************************************/
|
||||
|
||||
`define NRV_IO_LEDS // Mapped IO, LEDs D1,D2,D3,D4 (D5 is used to display errors)
|
||||
//`define NRV_IO_IRDA // In IO_LEDS, support for the IRDA (WIP)
|
||||
`define NRV_IO_UART // Mapped IO, virtual UART (USB)
|
||||
//`define NRV_IO_SSD1351 // Mapped IO, 128x128x64K OLED screen
|
||||
//`define NRV_IO_MAX7219 // Mapped IO, 8x8 led matrix
|
||||
`define NRV_MAPPED_SPI_FLASH // SPI flash mapped in address space. Can be used to run code from SPI flash.
|
||||
|
||||
/************************* Processor configuration *******************************************************************/
|
||||
|
||||
//`define NRV_FEMTORV32_TACHYON // "Tachyon" (carefully latched for max highfreq). Needs more space (remove MAX7219).
|
||||
`define NRV_FEMTORV32_QUARK
|
||||
`define NRV_FREQ 12 // 12 MHz is the default clock frequency in iCESugar-nano. Board max is 72 MHz.
|
||||
`define NRV_RESET_ADDR 32'h00820000 // Jump execution to SPI Flash (800000h, +128k(20000h) for FPGA bitstream)
|
||||
`define NRV_COUNTER_WIDTH 24 // Number of bits in cycles counter
|
||||
//`define NRV_TWOLEVEL_SHIFTER // Faster shifts
|
||||
//`define NRV_NEGATIVE_RESET
|
||||
|
||||
/************************* RAM (in bytes, needs to be a multiple of 4)***********************************************/
|
||||
|
||||
//`define NRV_RAM 4096 // 4kB, for less LUTs usage, edit spiflash_icesugar_nano.ld too for 4kB RAM
|
||||
`define NRV_RAM 6144 // 6kB, default for iCESugar-nano (iCE40LP1KCM36) (cannot do more !)
|
||||
|
||||
/************************* Advanced devices configuration ***********************************************************/
|
||||
|
||||
`define NRV_RUN_FROM_SPI_FLASH // Do not 'readmemh()' firmware from '.hex' file
|
||||
`define NRV_IO_HARDWARE_CONFIG // Comment-out to disable hardware config registers mapped in IO-Space
|
||||
// (note: firmware libfemtorv32 depends on it)
|
||||
|
||||
/********************************************************************************************************************/
|
||||
|
||||
`define NRV_CONFIGURED
|
||||
Reference in New Issue
Block a user