On Wednesday 21 June 2006 02:15, you wrote: > > 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
How do you reset start_line? If I try to set it, iverilog complains that it's a wire & not a reg... And if I don't set it, isn't the line going to start drawing again as soon as drawing_line is reset? H
pgpCizhSE7Ooe.pgp
Description: PGP signature
_______________________________________________ Open-graphics mailing list [email protected] http://lists.duskglow.com/mailman/listinfo/open-graphics List service provided by Duskglow Consulting, LLC (www.duskglow.com)
