J
Johnsy Joseph
Guest
Hello Everybody,
I would be grateful if somebody helped with this. The problem I am
facing is how to control an assignement to signal based on the changes
that happen to a variable declared in a process block. The situation
is like this.
architecture circuit of queue is
begin
signal queueisfull: std_logic;
queueisfull <= 1 when queuetop = '100' else '0';
process(clk)
variable queuetop: std_logic;
begin
-- I have a large number of statements that assign to queuetop at
different
-- places. Anytime "queuetop" changes I want the "queueisfull"
signal to get
-- the appropriate value but queuetop is defined in the process
only.
end process;
end circuit;
Do I have something like a global variable?
Please forgive me if the question is stupid. I am new to VHDL and
hence the confusion.
Thanks for the help
Warm Regards
Johnsy
I would be grateful if somebody helped with this. The problem I am
facing is how to control an assignement to signal based on the changes
that happen to a variable declared in a process block. The situation
is like this.
architecture circuit of queue is
begin
signal queueisfull: std_logic;
queueisfull <= 1 when queuetop = '100' else '0';
process(clk)
variable queuetop: std_logic;
begin
-- I have a large number of statements that assign to queuetop at
different
-- places. Anytime "queuetop" changes I want the "queueisfull"
signal to get
-- the appropriate value but queuetop is defined in the process
only.
end process;
end circuit;
Do I have something like a global variable?
Please forgive me if the question is stupid. I am new to VHDL and
hence the confusion.
Thanks for the help
Warm Regards
Johnsy