ktsangop
Junior Member level 1
Hi everybody!
I have a verilog design compiled in Altera's quartus 7.2 web edition.
The design has the following state machine (the whole file is attached also) :
After compilation and after trying to simulate the design using quartus' simulator tool, i used node finder to add the idest_addr to my waveform file.
That's when i realised that the reg idest_addr (which is 3 bits wide) was represented as 8x1-bit wide registers with names 000,001,010...etc.
question 1 : Is this normal??Does this affect my design or is it just the way quartus represents state machine registers?
question 2 : My real problem is that one of those 8 registers is kind of stuck at 1. It gets 0 only when it is supposed to be 1!! (please take a look at the following image)
I've tried a few things but couldn't solve it.
Please guys take a look at my verilog file and give any suggestions.
Thanks in advance!
I have a verilog design compiled in Altera's quartus 7.2 web edition.
The design has the following state machine (the whole file is attached also) :
Code:
[i]...
reg [2:0] idest_addr;
...
case (idest_addr)
3'b000 : r_out=data_in;
3'b001 : e_out=data_in;
3'b010 : n_out=data_in;
3'b011 : w_out=data_in;
3'b100 : s_out=data_in;
3'b101 : e_out=data_in;
3'b110 : s_out=data_in;
3'b111 : w_out=data_in;
default : r_out=data_in;
endcase
...[/i]
After compilation and after trying to simulate the design using quartus' simulator tool, i used node finder to add the idest_addr to my waveform file.
That's when i realised that the reg idest_addr (which is 3 bits wide) was represented as 8x1-bit wide registers with names 000,001,010...etc.
question 1 : Is this normal??Does this affect my design or is it just the way quartus represents state machine registers?
question 2 : My real problem is that one of those 8 registers is kind of stuck at 1. It gets 0 only when it is supposed to be 1!! (please take a look at the following image)
I've tried a few things but couldn't solve it.
Please guys take a look at my verilog file and give any suggestions.
Thanks in advance!