fatihtir1
Newbie level 2
Hello all,
Could you please tell me the difference between two lines below:
sram_da <= write_data when (sram_read='0') else "ZZZZZZZZZZZZZZZZ";
sram_da <= "ZZZZZZZZZZZZZZZZ" (sram_read='1) else write_data;
I used the first line for reading from sram, but simulation didn't showed expected result (i have an sram vhld model also). After long hours of examination and trying, when i replaced it with second line, it was ok. But I can't understand why the first line is wrong.
I appreciate your help.
Regards.
Could you please tell me the difference between two lines below:
sram_da <= write_data when (sram_read='0') else "ZZZZZZZZZZZZZZZZ";
sram_da <= "ZZZZZZZZZZZZZZZZ" (sram_read='1) else write_data;
I used the first line for reading from sram, but simulation didn't showed expected result (i have an sram vhld model also). After long hours of examination and trying, when i replaced it with second line, it was ok. But I can't understand why the first line is wrong.
I appreciate your help.
Regards.