bianchi77
Advanced Member level 4
- Joined
- Jun 11, 2009
- Messages
- 1,313
- Helped
- 21
- Reputation
- 44
- Reaction score
- 20
- Trophy points
- 1,318
- Location
- California
- Activity points
- 9,442
Guys,
I'm beginner on VHDL and playing with VGA,
I want to flip green to red with one statement of VHDL, is that possible ?
I tried with combining :
but it didn't work, is there anyway to combine it on one statement ?
Any ideas ?
Thanks
I'm beginner on VHDL and playing with VGA,
I want to flip green to red with one statement of VHDL, is that possible ?
I tried with combining :
Code:
red <= '1' when vert_scan > 10 and vert_scan < 515 and horz_scan >= 100 and horz_scan < 350 else '0';
grn <= '1' when vert_scan > 20 and vert_scan < 525 and horz_scan >= 200 and horz_scan < 450 else '0';
but it didn't work, is there anyway to combine it on one statement ?
Any ideas ?
Thanks