Add APP_SIZE parameter to tk1 block to set size of application when simulating.

This commit is contained in:
Jonas Thörnblad 2024-11-25 14:58:17 +01:00 committed by Daniel Jobson
parent 5b49d80891
commit e54045a4dd
No known key found for this signature in database
GPG key ID: 3707A9DBF4BB8F1A
2 changed files with 5 additions and 3 deletions

View file

@ -13,7 +13,9 @@
`default_nettype none
module tk1 (
module tk1 #(
parameter [31:0] APP_SIZE = 32'h0
) (
input wire clk,
input wire reset_n,
@ -255,7 +257,7 @@ module tk1 (
gpio3_reg <= 1'h0;
gpio4_reg <= 1'h0;
app_start_reg <= 32'h0;
app_size_reg <= 32'h0;
app_size_reg <= APP_SIZE;
blake2s_addr_reg <= 32'h0;
cdi_mem[0] <= 32'h0;
cdi_mem[1] <= 32'h0;