Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

toggling an output

2,141 views
Skip to first unread message

tony rudzki

unread,
Aug 25, 2001, 9:05:40 AM8/25/01
to
This is a pretty simple question:

How can you toggle an output signal in VHDL? I make 'amberout' an Output
and in a counter, when I count down to 0, I want to toggle the output. I'm
using :

amberout <= not amberout;

but this generates erors in Galaxy 5.2 (cypress). The error I get is:

'amberout' not readable. Mode is OUT.


any help would be appreciated

Tony

dmac

unread,
Aug 25, 2001, 12:04:44 PM8/25/01
to
An output cannot be read, either:
1 define port as inout (less preferred)
or
2. declare an intermediate signal: (more preferred)
amber <= not amber; -- within clocked process
amberout <= amber; -- outside clocked process
this does not use any extra resources.
A common convention is to use suffix _i for intermediate signals to show
what you're up to:
amber_i <= not amber_i; -- clocked
amber <= amber_i; -- unclocked

Dave

tony rudzki <tony....@nu-metrics.com> writes

--
dmac

weede...@gmail.com

unread,
Dec 15, 2014, 7:26:18 PM12/15/14
to
Thank you for this answer. It was helpful to me.
0 new messages