icebreaker: artificially limit available RAM to speed-up simulation
This commit is contained in:
		
							parent
							
								
									eb64df6c3e
								
							
						
					
					
						commit
						3710a86b81
					
				| 
						 | 
					@ -45,6 +45,8 @@ module icebreaker (
 | 
				
			||||||
	inout  flash_io2,
 | 
						inout  flash_io2,
 | 
				
			||||||
	inout  flash_io3
 | 
						inout  flash_io3
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
						parameter integer MEM_WORDS = 32768;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	reg [5:0] reset_cnt = 0;
 | 
						reg [5:0] reset_cnt = 0;
 | 
				
			||||||
	wire resetn = &reset_cnt;
 | 
						wire resetn = &reset_cnt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -107,7 +109,7 @@ module icebreaker (
 | 
				
			||||||
	picosoc #(
 | 
						picosoc #(
 | 
				
			||||||
		.BARREL_SHIFTER(0),
 | 
							.BARREL_SHIFTER(0),
 | 
				
			||||||
		.ENABLE_MULDIV(0),
 | 
							.ENABLE_MULDIV(0),
 | 
				
			||||||
		.MEM_WORDS(32768)
 | 
							.MEM_WORDS(MEM_WORDS)
 | 
				
			||||||
	) soc (
 | 
						) soc (
 | 
				
			||||||
		.clk          (clk         ),
 | 
							.clk          (clk         ),
 | 
				
			||||||
		.resetn       (resetn      ),
 | 
							.resetn       (resetn      ),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -62,7 +62,12 @@ module testbench;
 | 
				
			||||||
		#1 $display("%b", leds);
 | 
							#1 $display("%b", leds);
 | 
				
			||||||
	end
 | 
						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      ),
 | 
							.clk      (clk      ),
 | 
				
			||||||
		.led1     (led1     ),
 | 
							.led1     (led1     ),
 | 
				
			||||||
		.led2     (led2     ),
 | 
							.led2     (led2     ),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue