diff --git a/src/record.py b/src/record.py index 98f57f7..2e580f7 100644 --- a/src/record.py +++ b/src/record.py @@ -188,6 +188,9 @@ def get_sample(dut, channel): # return 0 print(vgm_filename, "->", wave_file) print(f"VGM playback rate: {playback_rate}, clock: {clock_rate}, frames: {len(music)}" ) + print(f"VGM length: {len(music)/playback_rate:.2f} sec" ) + print(f"This script will record {max_time if max_time > 0 else len(music)/playback_rate:.2f} sec" ) + WRITE_ENABLED = 0b11111_01_0 # SEL = 1 :: no clock div ; /WE = 0 :: writes enabled WRITE_DISABLED = 0b11111_01_1 # SEL = 1 :: no clock div ; /WE = 1 :: writes disabled @@ -217,10 +220,6 @@ def get_sample(dut, channel): dut.rst_n.value = 1 print_chip_state(dut) - dut._log.info("record " + str(max_time) + " sec") - # music = music[(60+45)*50:-1] - # music = music[:300] - n = 0 samples = [[] for ch in wave_file] for frame in music: