Example of work in command when designing the digital systems Card game Black Jack Purpose of card play blackjack - to take a greater amount of spectacles. Before the beginning of distribution of cards a player does a shutter coming from that spectacles, which he ahs. Hereinafter he is given tow cards. Each card ahs its weight (2..10 nominal value; knave - 2, queen - 3; king - 4; ace - 11, but one of the aces possible to equal 1) Play it is necessary to take an amount of cards, weight which more than beside the croupier, but not more than 21. Under the equal amount of spectacles, but smaller than 22, croupier wins. In the event of the advantage of player an amount of spectacles increases on the size of rate, in the event of the advantage a croupier decreases. At the loss both - stays unchangeable. Each strolled in the automaton a coin enlarges an amount of spectacles of player on 10. Click here Gomel State University NIT Labs IEESD-2000/HLCCAD Creation an interactive environment for debugging Game automate model will consist of two main blocks: specialised terminal BJTerminal Information from synthesised digital block BJMain keyboard And also two auxiliary devices: • pulser GEN • generator of random digits RND Information for display Specialised terminal BJTerminal Create terminal model by HLL Delphi source text of terminal model Exterior of terminal • button panel • display Structural of device BJMain Cards BJCards Game control BJControl Come a conclusion to split BJMain on 6 blocks: BJControl - control game state: exchange cards, distribution cards, stop game BJCards - keeps information about cards (sequences of cards), can exchange cards and distribution their Croupier BJComputer BJBank - keeps amount spectacles taken by player and rate size BJSummer - defines optimal weight cards taken by player BJComputer - defines optimal weight cards taken by croupier and comes a conclusion about next step BJChecker - defines winner of game Player BJSummer Who is winner BJChecker Bank BJBank Scheme of device BJMain Game control BJControl Cards BJCards Bank BJBank Croupier BJComputer Player BJSummer Who winner BJChecker Draft design For each blocks create model on HLL Modelling device BlackJack Obtain correct working all devices in accordance with specification Packet debugging environment Generation of test file on interactive modelling results Packet test of project on generated test file Functional design Select 6 groups of developments. Stand each of blocks from device BJMain in separate file. Take task for groups: presents blocks as synthesised combination of device from library ”Standard”. Library of synthesised device Main project System ensures possibility to develop only its part of the project and modelling whole project! Separate project with block BJCards Portioned designing Workstation Project server BlackJack.prj BJControl.prj BJComputer.prj BJSummer.prj BJBank.prj BJChecker.prj BJCadrs.prj On the project server kept devices, received in step of draft designing. To workstation is copied part of project, subjecting functional designing given by group of developers. Modelling system consists of two part: • BJCards - project under development at workstation BJCadrs.prj • all other components of systems which kept on project server Principal design Result of functional design a block BJCards Automatic generation synthesised by VHDL descriptions device BJMain describe Contacts New Information Technologies Laboratories (NIT Labs) Gomel Fr. Skarina State University Belarus E-mail: [email protected] WWW: http://nit.gsu.unibel.by
© Copyright 2026 Paperzz