URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
69 |
rfajardo |
|
| 2 |
|
|
`timescale 1ns/100ps
|
| 3 |
|
|
|
| 4 |
|
|
//set RTL for simulation, override FPGA specific definitions (JTAG TAP, MEMORY and CLOCK DIVIDER)
|
| 5 |
|
|
`define GENERIC_FPGA
|
| 6 |
|
|
`define MEMORY_MODEL //simulation uses a memory model enabling INITIALIZE_MEMORY_MODEL. If you comment this, START_UP might be interesting.
|
| 7 |
|
|
`define NO_CLOCK_DIVISION //if commented out, generic clock division is implemented (odd divisors are rounded down)
|
| 8 |
|
|
//~set RTL for simulation, override FPGA specific definitions (JTAG TAP, MEMORY and CLOCK DIVIDER)
|
| 9 |
|
|
|
| 10 |
|
|
`define FREQ_NUM_FOR_NS 1000000000
|
| 11 |
|
|
|
| 12 |
|
|
`define FREQ 10000000
|
| 13 |
|
|
`define CLK_PERIOD (`FREQ_NUM_FOR_NS/`FREQ)
|
| 14 |
|
|
|
| 15 |
|
|
`define ETH_PHY_FREQ 25000000
|
| 16 |
|
|
`define ETH_PHY_PERIOD (`FREQ_NUM_FOR_NS/`ETH_PHY_FREQ) //40ns
|
| 17 |
|
|
|
| 18 |
|
|
`define UART_BAUDRATE 19200
|
| 19 |
|
|
|
| 20 |
|
|
`define VPI_DEBUG
|
| 21 |
|
|
|
| 22 |
|
|
//`define VCD_OUTPUT
|
| 23 |
|
|
|
| 24 |
|
|
//`define START_UP //pass firmware over spi to or1k_startup
|
| 25 |
|
|
|
| 26 |
|
|
`define INITIALIZE_MEMORY_MODEL //instantaneously initialize memory model with firmware
|
| 27 |
|
|
//only use with the memory model.
|
| 28 |
|
|
//If you use the original memory (`define MEMORY_MODEL
|
| 29 |
|
|
//commented out), comment this too.
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.