- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i need to design a car park indicator system for a space with 8 lots. it needs to have the following specifications:
- a seven-segment display to indicate the number of free lots.
- presettable up/down counter
- each lor has a light which will turn on to indicate that is free
- the light should turn off when the lost is occupied
- when the lot is filled to the maximun of 8 cars, the seven-segment should display 'F' the indicate it is full
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
lots of syntax errors. I suggest fixing these before we go further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
could you help me with it? i am so confused and i dont know how to do it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Run it through a compiler and it will tell you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like a school assignment, am I right. If it is, you could also ask your teacher.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
well there is alot of problems and i dunno how to solve them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- It looks like a school assignment, am I right. If it is, you could also ask your teacher. --- Quote End --- it is but my teacher wont help with this assignment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- well there is alot of problems and i dunno how to solve them --- Quote End --- Run the code through a compiler - it will tell you where the errors are and what they are. Then you can fix them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
True, it is difficult to tell or spot some minor error. Any compiler give u more precise information on what the problem is. Also it will show u which line is problematic. With this info, if u still not able to fix, u can paste the error here, and people and help u from there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- True, it is difficult to tell or spot some minor error. Any compiler give u more precise information on what the problem is. Also it will show u which line is problematic. With this info, if u still not able to fix, u can paste the error here, and people and help u from there --- Quote End --- these are the errors Error (10500): VHDL syntax error at carpark.vhd(10) near text "q"; expecting "end", or "begin", or a declaration statement Error (10500): VHDL syntax error at carpark.vhd(10) near text ")"; mismatched closing parenthesis Error (10523): Ignored construct carpark at carpark.vhd(3) due to previous errors Error (10500): VHDL syntax error at carpark.vhd(18) near text "type"; expecting ";", or "is" Error (10500): VHDL syntax error at carpark.vhd(24) near text "elsif"; expecting "end", or "(", or an identifier ("elsif" is a reserved keyword), or a sequential statement Error (10500): VHDL syntax error at carpark.vhd(24) near text "then"; expecting "(", or "'", or "." Error (10500): VHDL syntax error at carpark.vhd(26) near text "if"; expecting "process" Error (10500): VHDL syntax error at carpark.vhd(34) near text "begin"; expecting "end", or "(", or an identifier ("begin" is a reserved keyword), or a sequential statement Error (10500): VHDL syntax error at carpark.vhd(36) near text "with"; expecting "end", or "(", or an identifier ("with" is a reserved keyword), or a sequential statement Error (10500): VHDL syntax error at carpark.vhd(37) near text "when"; expecting ";" Error (10500): VHDL syntax error at carpark.vhd(55) near text "if"; expecting "process" Error (10396): VHDL syntax error at carpark.vhd(57): name used in construct must match previously specified name "arc" Info: Found 0 design units, including 0 entities, in source file carpark.vhd Error: Quartus II Analysis & Synthesis was unsuccessful. 12 errors, 0 warnings Error: Peak virtual memory: 222 megabytes Error: Processing ended: Wed Jul 31 22:10:50 2013 Error: Elapsed time: 00:00:04 Error: Total CPU time (on all processors): 00:00:03 Error: Quartus II Full Compilation was unsuccessful. 14 errors, 0 warnings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should check the second error first. in this case I think it is also the cause of at least the first error.
ad in the process you start with an elseif, you should start with an if statement. I suggest reading chapters (or search the web) about the if statement. Also you should take a look at how to open and close entities and architectures. Finally I give you a tip: Use tabs to line your code. As you start a block (if, begin, port, etc.) you use a tab on the next line, this improves reading and thereby you can easily find problems related to errors like 10500.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why are you telling us and not fixing them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Finally I give you a tip: Use tabs to line your code. As you start a block (if, begin, port, etc.) you use a tab on the next line, this improves reading and thereby you can easily find problems related to errors like 10500. --- Quote End --- that was because the forum strips out leading whitespace unless you use code tags.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- that was because the forum strips out leading whitespace unless you use code tags. --- Quote End --- I know, but still, if you do this right it helps. You'll be surprised how many times I get code from project mates who don't use this.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page