Advertisement
Guest User

Untitled

a guest
Mar 10th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     logic enable;
  2.  
  3.     //edge function polarities
  4.     //a point is inside the triangle if all 3 edge functions are positive
  5.     logic [1:0][1:0]e0, e1, e2;
  6.     logic [1:0][1:0]pixel_inside = ~(e0 | e1 | e2);
  7.    
  8.     assign rasterPixel = pixel_inside & enable;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement