Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

chess clock coding using quartus II

Altera_Forum
Honored Contributor II
2,922 Views

i'm a newbie..can u plz guide me to write a code on normal digital chess clock?

0 Kudos
14 Replies
Altera_Forum
Honored Contributor II
2,123 Views

The chess clock is a simple finite state machine (FSM) which you can firstly design as a state diagram just figuring out the various states in which the machine will work in dependance of the external inputs and of the current states. 

After having completed the FSM schematization you will have to translate everything into HDL code (maybe Verilog or VHDL) and put it into a new Quartus II project. 

Do you need specific help for the chess clock project or also a comprehensive tutorial on Quartus II environment and FSM design?
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

thanks for helping... 

 

i think i need more..because i'm totally blur...i dont know where to start, the state diagram, state table...very blur....
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

OK, so you need first of all a good book of Digital Electronics Design just to understand how a design idea can be translated into a FSM (which can be described conveniently by a state diagram). After that you will need to have a tutorial of Quartus II environment (directly available after installing Quartus II) and then you need to learn HDL programming. 

So you can understand that the process is a bit long and not simply solvable through some forum clues. 

If you need, I can suggest you some good books for Digital Electronics and for VHDL/Verilog programming 

 

Cheers 

OD
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

i have a book on digital fundamentals n digital logic already...but what i can do only a simple projects, such as vending machine, 7segment. 

 

but when it comes to this, i do not know how to do the state diagram... 

 

pls help me..
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

You may have a look at the book "Circuit Design with VHDL" by Volnei A. Pedroni. You can freely download it from www.scribd.com. Chapter 8 is the one dealing with finite state machines. Is it always good for a digital design engineer to have some theoretical overview about FSM design, it is the first step towards a good result. 

Good luck. 

OD
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

argh...i dont think i can make it in these day.. 

somebody plz help meee with the state diagram....!!! 

arggghh...
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

I have found it for you. 

Just go to http://www.gexin.com.cn/uploadfile/document2007620132345.pdf, download the document and go to page 45. 

Good luck with your design. ;) 

OD
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

oh dear..you really helped me...thank you soooo much OD...

0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

i have a problem with that coding OD..before i start with my editing the code, i try to run the program..but it keeps telling me there were an error at the area of the last 2 blocks.. 

 

Error (10500): VHDL syntax error at cheroy.vhd(165) near text "END"; expecting ";", or an identifier ("end" is a reserved keyword) 

Error (10500): VHDL syntax error at cheroy.vhd(167) near text "BLOCK"; expecting "(", or an identifier ("block" is a reserved keyword), or a sequential statement 

Error (10500): VHDL syntax error at cheroy.vhd(175) near text "END"; expecting ";", or an identifier ("end" is a reserved keyword) 

 

can u please help me..
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

I have copied the code in Quartus II and I am unable to reproduce those messages after a file analyze command. Try to review all your code and search for missing brackets or semicolons. Sorry but I haven't got any other suggestions since I am not able to reproduce the messages.

0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

i have another problem like this 

 

Error (10397): VHDL Event Expression error at timer.vhd(15): can't form clock edge from S'EVENT by combining it with an expression that depends on a signal besides S 

Error (10658): VHDL Operator error at timer.vhd(15): failed to evaluate call to operator ""and"" 

Error: Can't elaborate top-level user hierarchy 

 

one more thing i wanna ask you, the package should be written in the coding or separated?
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

do u finished the chess clock code? do u mind to post it??

0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

Too all, 

 

I may be completely wrong here, and Cempaka, please correct me if I am, but..... 

 

This sure looks like Cempaka has been assigned a homework problem in a class somewhere and none of us are doing this person any good if we do all the work for him (her). 

 

There are a lot of very basic items that can most likely be addressed if you look at the Altera WEB page, Training and take some of the free WEB training classes. 

 

http://www.altera.com/education/training/curriculum/fpga/trn-fpga.html 

 

I would start at the top on the right, and work my way down. 

 

Please let me know if I am wrong or missing the mark. 

Avatar
0 Kudos
Altera_Forum
Honored Contributor II
2,123 Views

actually its not a homework...its one of my project... 

 

thank you avatar...
0 Kudos
Reply