Part 1. The start of the line, always @(posedge bresLineStart) that calculates
the delta's, whether it's steep, and the current point. Lastly it resets the
output (bresLineEnded).
It's good that you're doing this, because it reminds me to mention in
lesson 4 to never use something that isn't a clock net as a clock. :)
You'll want to do something like this:
always @(posedge clock) begin
if (drawing_line) begin
... next step in drawing line ...
if (... last pixel ...) begin
drawing_line <= 0;
end
end else if (start_line) begin
... grab input parameters into registers and start counter ...
drawing_line <= 1;
end
end
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)