Skip to content

Commit

Permalink
Аdded a description of the parameter align_right
Browse files Browse the repository at this point in the history
  • Loading branch information
oVadim committed Nov 20, 2024
1 parent c547dc5 commit 4d99461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ module board_specific_top

// Onboard PT8211 DAC Tang Primer 20k dock board

/* About the parameter i2s_audio_out .in_res(31). Shifting the data to the right.
/* About the parameter align_right. Shifting the data to the right.
PT8211 DAC requires Japanese or called LSB (Least Significant Bit Justified)
data format (LSB data at the end of the packet). With respect to I2C shifted
to the right by 1 bit, this will be 15 bits. The width of the data bus in the
Expand Down
2 changes: 1 addition & 1 deletion peripherals/i2s_audio_out.sv
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module i2s_audio_out
# (
parameter clk_mhz = 50,
in_res = 16, // sound samples resolution, see tone_table.svh
align_right = 0
align_right = 0 // For I2S =0. For PT8211 DAC (Least Significant Bit Justified) =1.
)
(
input clk,
Expand Down

0 comments on commit 4d99461

Please sign in to comment.