- //If we're in 101, we only need a new bit every 8th carrier bit (53Hz). Otherwise, get next bit at 424Khz
- if(mod_type == 3'b101)
- begin
- if(ssp_clk_divider[7:0] == 8'b00000000)
- ssp_clk <= 1'b0;
- if(ssp_clk_divider[7:0] == 8'b10000000)
- ssp_clk <= 1'b1;
-
- end
+ if(mod_type == `MODULATE_424K_8BIT)
+ // Get bit every at 53KHz (every 8th carrier bit of 424kHz)
+ ssp_clk <= ssp_clk_divider[7];
+ else if(mod_type == `MODULATE_212K)
+ // Get next bit at 212kHz
+ ssp_clk <= ssp_clk_divider[5];