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
- from Rev 60 to Rev 59
- ↔ Reverse comparison
Rev 60 → Rev 59
/verilog/minsoc_bench_defines.v
1,9 → 1,16
|
`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 MEMORY_MODEL //simulation uses a memory model enabling INITIALIZE_MEMORY_MODEL. If you comment this, START_UP might be interesting. |
`define NO_CLOCK_DIVISION //if commented out, generic clock division is implemented (odd divisors are rounded down) |
//~set RTL for simulation, override FPGA specific definitions (JTAG TAP, MEMORY and CLOCK DIVIDER) |
|
/verilog/minsoc_bench.v
4,14 → 4,6
|
module minsoc_bench(); |
|
`ifdef POSITIVE_RESET |
localparam RESET_LEVEL = 1'b1; |
`elsif NEGATIVE_RESET |
localparam RESET_LEVEL = 1'b0; |
`else |
localparam RESET_LEVEL = 1'b1; |
`endif |
|
reg clock, reset; |
|
//Debug interface |
68,7 → 60,7
reg load_file; |
|
initial begin |
reset = ~RESET_LEVEL; |
reset = ~`RESET_LEVEL; |
clock = 1'b0; |
|
`ifndef NO_CLOCK_DIVISION |
128,9 → 120,9
|
// Reset controller |
repeat (2) @ (negedge clock); |
reset = RESET_LEVEL; |
reset = `RESET_LEVEL; |
repeat (16) @ (negedge clock); |
reset = ~RESET_LEVEL; |
reset = ~`RESET_LEVEL; |
|
`ifdef START_UP |
// Pass firmware over spi to or1k_startup |
/verilog/minsoc_memory_model.v
52,7 → 52,7
// |
|
|
module minsoc_memory_model ( |
module minsoc_onchip_ram_top ( |
wb_clk_i, wb_rst_i, |
|
wb_dat_i, wb_dat_o, wb_adr_i, wb_sel_i, wb_we_i, wb_cyc_i, |