Skip to content

Commit

Permalink
Fixing tests, using 50MHz of JTAG instead of 55,something MHz.
Browse files Browse the repository at this point in the history
  • Loading branch information
maicolciani committed Sep 2, 2024
1 parent 796c927 commit 2af4ed9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion target/sim/src/astral_fix.sv
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ module astral_fixture;
/////////////////////////

if (CarfieldIslandsCfg.secured.enable) begin: gen_scured_vip
localparam time ClkPeriodSecdJtag = ClkPeriodRef * 2;
localparam time ClkPeriodSecdJtag = ClkPeriodJtag / 5;

// VIP
vip_security_island_soc #(
Expand Down
16 changes: 8 additions & 8 deletions target/sim/src/astral_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ module tb_astral;
fix.set_secure_boot(secure_boot);

// set bootmode
fix.gen_scured_vip.secd_vip.set_secd_boot_mode(secd_boot_mode);
fix.gen_secured_vip.secd_vip.set_secd_boot_mode(secd_boot_mode);

if (secd_preload_elf != "" || secd_flash_vmem != "") begin
// Wait for reset
Expand All @@ -319,16 +319,16 @@ module tb_astral;
// Wait before security island HW is initialized
repeat(10000)
@(posedge fix.ref_clk);
fix.gen_scured_vip.secd_vip.debug_secd_module_init();
fix.gen_scured_vip.secd_vip.load_secd_binary(secd_preload_elf);
fix.gen_scured_vip.secd_vip.jtag_secd_data_preload();
fix.gen_scured_vip.secd_vip.jtag_secd_wakeup(32'hE0000080);
fix.gen_scured_vip.secd_vip.jtag_secd_wait_eoc();
fix.gen_secured_vip.secd_vip.debug_secd_module_init();
fix.gen_secured_vip.secd_vip.load_secd_binary(secd_preload_elf);
fix.gen_secured_vip.secd_vip.jtag_secd_data_preload();
fix.gen_secured_vip.secd_vip.jtag_secd_wakeup(32'hE0000080);
fix.gen_secured_vip.secd_vip.jtag_secd_wait_eoc();
end 1: begin
fix.gen_scured_vip.secd_vip.spih_norflash_preload(secd_flash_vmem);
fix.gen_secured_vip.secd_vip.spih_norflash_preload(secd_flash_vmem);
repeat(10000)
@(posedge fix.ref_clk);
fix.gen_scured_vip.secd_vip.jtag_secd_wait_eoc();
fix.gen_secured_vip.secd_vip.jtag_secd_wait_eoc();
end default: begin
$fatal(1, "Unsupported boot mode %d (reserved)!", secd_boot_mode);
end
Expand Down

0 comments on commit 2af4ed9

Please sign in to comment.