- MODELSIM 10 COMMANDS FULL
- MODELSIM 10 COMMANDS SOFTWARE
- MODELSIM 10 COMMANDS CODE
- MODELSIM 10 COMMANDS SERIES
- MODELSIM 10 COMMANDS WINDOWS
Instead of writing single commands in Transcript-window, you can run many commands in sequence from a Do-file.
This is enough to show the lock's entire opening sequence.
MODELSIM 10 COMMANDS FULL
The full simulationtime 100 ns +30ns + 800 ns = 930 ns corresponds to 46.5 clock pulse periods. force codelock/k 001ģ0 ns (20+10) means that the keypress is certain be in the gap between the clock edges. Choose View, Zoom, and Zoom Full or Zoom Last. Runs the simulation in 100 ns, which is five clock cycles. force codelock/k 000 force codelock/r 0000 Initiates variables r and k. force codelock/clk 1 0ns, 0 10ns -repeat 20ns Generates clockpulses for ever. Stimuli, Inputsignals as clock pulses or key-presses, are created with the command force in the Transcript-window. We then has to imagine that there are fast fingers that press the keys! The easiest way, of not having to make extensive adjustments of the program, is to "scale" our problem to a higher clock speed with a period of 20 ns.
MODELSIM 10 COMMANDS CODE
A suitable clock frequency for a code lock may however be as low as 5 Hz, or a period time of 0.2 sec. The default time resolution in Wave is nanoseconds, ns. Other variables are best suited to be presented as binary numbers. We therefore suggest that you check the variable and change the presentation to hexadecimal. UUUUU is exchanged to XX in the Wave -window. The state variable q has 32 different states, such a variable is easier to follow if it is presented as a hexa-decimal number, 00.
MODELSIM 10 COMMANDS WINDOWS
With the button Close those windows not needed for the time can be closed. With the button Dock/Undock the window can be moved to any location, it is that alternative we choose for Wave -window. With the button Zoom/Unzoom you can enlarge the window. It can be hard to see everything at the same time. Give thees commands in Transcript -window or check in the View -menu. We need to have a number of windows open in order to follow the simulation. In the Transcript -window you can follow the commands executed.
MODELSIM 10 COMMANDS SERIES
A series of commands are now executed resulting in that the design is loaded into the simulator. Choose the tab Library, and open the folder work. Commands are always written in the Transcript-window, regardless of how they are given. Transcript-window is a terminal window where you enter commands, but you can also give most commands by menu selection, or by clicking on buttons. We simulate by giving different commands in the Transcript-window, and then follow some selected signals in the window Wave. Status symbol changes from a blue question mark to a green check! Simulate codelock-template! Now the VHDL-code is also compiled for Modelsim. Ĭhoose Compile menu, alternative Compile All. Though we have compiled the VHDL code in Quartus we must now compile it again for ModelSim. ModelSim has a own compiler to produce the code for simulation.
"Browse" to the file codelock.vhd that we created earlier with Quartus.Ĭlick on OK. We choose "Add Existing File" to add a VHDL-file to the project. Default Library Name work keep the suggested name, it's the standard at VHDL-simulation Project Name MAXsim can be a suitable name Project location H:/MAXwork browse to the same folder you used for Quartus.
Then you click on "Create a Project" in the welcome window. In the window "important information" you click on Jumpstart to get help with setting up a project. ModelSim-Altera 10.1d(Quartus II 13.0sp1)
ModelSim-Altera Starter Edition 13.0.1.232\
MODELSIM 10 COMMANDS SOFTWARE
Select the correct software version - in school there are several versions installed in the Start menu! ( As long as the target circuit is of Altera's brand. MAX-chips, so one can also do simulations that take into account the "time delay" and other phenomena within the intended target circuit. The Altera version of ModelSim is also integrated with a "database" with facts about Altera-chips, eg. ModelSim can be used to simulate VHDL-code, to determine whether it is "right" thinking. Simulate with ModelSim ModelSim - simulation software