mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-25 07:29:25 -05:00
Add APP_SIZE parameter to tk1 block to set size of application when simulating.
This commit is contained in:
parent
5b49d80891
commit
e54045a4dd
@ -1 +1 @@
|
|||||||
2a3928e8587c8d5d7eca6048c6448dc1d16d52a9a25d3ca5026bec3e7fb14ef3 application_fpga.bin
|
44086edb70377991b57d3f1c231f743fcf0c2c9d2303843ec133f76cc42449a8 application_fpga.bin
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user