נתקלתי ב-2 בעיות שאני לא מצליח להתגבר עליהם בתרגיל הזכרון:
1. האחת היא התזמונים של השמה ל DATA IN, זה קורה תמיד שעון אחד אחרי
הכתובת שאני רוצה באמת ב ADRESSוגם שניסיתי להשהות עי השמה למשתנה נוסף
לא הצלחתי, להיפך רק איחרתי את ההשמה. :
2. כנראה התחביר שלי לא נכון לקריאה מהזכרון (DATA OUT), זה מה שרשמתי
אבל אני מקבל שגיאה כאשר אני מנסה להריץ אץ הסימולציה:
when READING =>
if conv_integer(address) <= 1023 then
-- data_out <= data_in(conv_integer(address));
address <= conv_std_logic_vector ((conv_integer(address) + 1) ,
10 ) ;
Hi
First of all you use operator of assignment in an if state, you should use equal sign instead
- if I see it correct from the phone. Second, I think it is better to try to synthesize a code before you are simulating it if it's designed to be synthasizable ofcouse.
I want to report about the bug in my previous reply - I thought about and it is not really and for sure not allways right to synthesize before simulation. By the way at least simulation usually takes less time.