תרגיל כתיבה וקריאה מזכרון

18 views
Skip to first unread message

oron margalit

unread,
Feb 4, 2012, 5:02:39 PM2/4/12
to FPGAXpert
היי חברים

נתקלתי ב-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 ) ;

Alex Zhitomirsky

unread,
Feb 5, 2012, 1:04:35 AM2/5/12
to fpga...@googlegroups.com

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.

On Feb 5, 2012 12:02 AM, "oron margalit" <or...@greenco-energy.com> wrote:

Alex Zhitomirsky

unread,
Feb 5, 2012, 1:04:51 AM2/5/12
to fpga...@googlegroups.com

Good luck

On Feb 5, 2012 12:02 AM, "oron margalit" <or...@greenco-energy.com> wrote:

Alex Zhitomirsky

unread,
Feb 5, 2012, 3:27:43 AM2/5/12
to fpga...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages