Skip to content

Commit

Permalink
tb: Add preload mode for OT-driven code execution for CVA6
Browse files Browse the repository at this point in the history
  • Loading branch information
alex96295 committed Jul 26, 2023
1 parent d7a8f03 commit ef96d20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tb/carfield_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module tb_carfield_soc;
// security island
string secd_preload_elf;

logic [63:0] unused;

// Cheshire standalone binary execution
initial begin
Expand Down Expand Up @@ -77,6 +78,12 @@ module tb_carfield_soc;
fix.chs_vip.slink_wait_for_eoc(exit_code);
end 2: begin // Standalone UART passive preload
fix.chs_vip.uart_debug_elf_run_and_wait(chs_preload_elf, exit_code);
end 3: begin // Secure boot: Opentitan booting CVA6
if (chs_preload_elf != "") begin
fix.chs_vip.slink_elf_preload(chs_preload_elf, unused);
fix.chs_vip.jtag_init();
fix.chs_vip.jtag_wait_for_eoc(exit_code);
end
end default: begin
$fatal(1, "Unsupported preload mode %d (reserved)!", boot_mode);
end
Expand Down

0 comments on commit ef96d20

Please sign in to comment.