Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
In this case, I keep my suggestion how to generate a sawtooth waveform. To modify scaling and period, you may want to change the 1 increment of a simple counter to a specific number. Obviously, it will count at 50 MHz.
RAMP WAVE GENERATION
`timescale 1ns / 1ps
output reg [7:0] Ramp;
always@(posedge Clk or posedge Rst)
Ramp <= Ramp+1′b1;
This is ramp wave code, could you please modify this to sawtooth wave form?