Files
RTR532/ps4/dds_vhdl/dds_vhdl.v
T
2020-03-29 21:08:14 +03:00

37 lines
913 B
Verilog
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/////////////////////////////////////////////////////////////////
// Author - Imants Pulkstenis
// Date - 29.03.2020
// Project name - PS04
// Module name - DDS (direct digital synthesis)
//
// Detailed module description:
// Aim of this problem set – to practice Direct Digital Synthesis in FPGA
//
// Revision:
// A - initial design
// B -
// C -
//
///////////////////////////////////////////////////////////////////
// define connections to outside
module dds_vhdl#( parameter
phase_width = 4,
data_width = 8
)(
input clk, //100mhz clock
input rst, //rst
input [1:0] control,
input [phase_width - 1:0] phase_incr, //"frequency"
output [phase_width - 1:0] phase_out,
output [data_width - 1:0] signal_out);
// define inside of the module
lookuptable lookuptable (
.in(),
.out());
endmodule