icebreaker: artificially limit available RAM to speed-up simulation

This commit is contained in:
Steffen Vogel 2019-02-12 00:13:33 +01:00
parent eb64df6c3e
commit 3710a86b81
2 changed files with 9 additions and 2 deletions

View File

@ -45,6 +45,8 @@ module icebreaker (
inout flash_io2,
inout flash_io3
);
parameter integer MEM_WORDS = 32768;
reg [5:0] reset_cnt = 0;
wire resetn = &reset_cnt;
@ -107,7 +109,7 @@ module icebreaker (
picosoc #(
.BARREL_SHIFTER(0),
.ENABLE_MULDIV(0),
.MEM_WORDS(32768)
.MEM_WORDS(MEM_WORDS)
) soc (
.clk (clk ),
.resetn (resetn ),

View File

@ -62,7 +62,12 @@ module testbench;
#1 $display("%b", leds);
end
icebreaker uut (
icebreaker #(
// We limit the amount of memory in simulation
// in order to avoid reduce simulation time
// required for intialization of RAM
.MEM_WORDS(256)
) uut (
.clk (clk ),
.led1 (led1 ),
.led2 (led2 ),