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

@ -1 +1 @@
2a3928e8587c8d5d7eca6048c6448dc1d16d52a9a25d3ca5026bec3e7fb14ef3 application_fpga.bin 44086edb70377991b57d3f1c231f743fcf0c2c9d2303843ec133f76cc42449a8 application_fpga.bin

View File

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