URL
https://opencores.org/ocsvn/minsoc/minsoc/trunk
Subversion Repositories minsoc
Compare Revisions
- This comparison shows the changes necessary to convert path
/minsoc/trunk/bench/verilog
- from Rev 58 to Rev 59
- ↔ Reverse comparison
Rev 58 → Rev 59
/minsoc_bench_defines.v
1,11 → 1,17
|
`timescale 1ns/100ps |
|
`ifdef POSITIVE_RESET |
`define RESET_LEVEL 1'b1 |
`elsif NEGATIVE_RESET |
`define RESET_LEVEL 1'b0 |
`else |
`define RESET_LEVEL 1'b1 |
`endif |
|
//set RTL for simulation, override FPGA specific definitions (JTAG TAP, MEMORY and CLOCK DIVIDER) |
`define GENERIC_FPGA |
`define NO_CLOCK_DIVISION //if commented out, generic clock division is implemented (odd divisors are rounded down) |
`undef NEGATIVE_RESET |
`define POSITIVE_RESET |
//~set RTL for simulation, override FPGA specific definitions (JTAG TAP, MEMORY and CLOCK DIVIDER) |
|
`define FREQ_NUM_FOR_NS 1000000000 |
/minsoc_bench.v
60,7 → 60,7
reg load_file; |
|
initial begin |
reset = 1'b0; |
reset = ~`RESET_LEVEL; |
clock = 1'b0; |
|
`ifndef NO_CLOCK_DIVISION |
120,9 → 120,9
|
// Reset controller |
repeat (2) @ (negedge clock); |
reset = 1'b1; |
reset = `RESET_LEVEL; |
repeat (16) @ (negedge clock); |
reset = 1'b0; |
reset = ~`RESET_LEVEL; |
|
`ifdef START_UP |
// Pass firmware over spi to or1k_startup |