Efficient Implementation of Digital Modulation Techniques on FPGA Using Verilog
BASK : `timescale 1ns/1ps module sine_wave(Clk,data_out); //declare input and output input Clk; output [7:0] data_out; //declare the sine ROM - 30 registers each 8 bit wide. reg [7:0] sine [0:29]; //Internal signals integer i; reg [7:0] data_out; //Initialize the sine rom with samples. initial begin i = 0; sine[0] = 0; sine[1] = 16; sine[2] = 31; sine[3] = 45; sine[4] = 58; sine[5] = 67; sine[6] = 74; sine[7] = 77; sine[8] = 77; sine[9] = 74; sine[10] = 67; sine[11] = 58; ...