Skip to content

Commit

Permalink
tb: Simplify cheshire tb snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
alex96295 committed Oct 11, 2023
1 parent 474ce53 commit aa98a24
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tb/carfield_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,16 @@ module tb_carfield_soc;
fix.chs_vip.i2c_eeprom_preload(chs_boot_hex);
fix.chs_vip.spih_norflash_preload(chs_boot_hex);

// Wait for reset
fix.chs_vip.wait_for_reset();
if (chs_preload_elf != "" || chs_boot_hex != "") begin

// Writing max burst length in Hyperbus configuration registers to
// prevent the Verification IPs from triggering timing checks.
$display("[TB] INFO: Configuring Hyperbus through serial link.");
fix.chs_vip.slink_write_32(HyperbusTburstMax, 32'd128);
// Wait for reset
fix.chs_vip.wait_for_reset();

// Writing max burst length in Hyperbus configuration registers to
// prevent the Verification IPs from triggering timing checks.
$display("[TB] INFO: Configuring Hyperbus through serial link.");
fix.chs_vip.slink_write_32(HyperbusTburstMax, 32'd128);

if (chs_preload_elf != "" || chs_boot_hex != "") begin
// When Cheshire is offloading to safety island, the latter should be set in passive preloaded
// bootmode
fix.safed_vip.set_safed_boot_mode(safety_island_pkg::Preloaded);
Expand Down

0 comments on commit aa98a24

Please sign in to comment.