Introduction to behavioral simulation in PlanAhead

The video below will guide you through how to make an behavioral simulation in PlanAhead. The introduction uses a fairly simple design with two LEDs blinking.

The steps to follow are the following:

  1. When you have created a design that you wan’t to simulate, you firstly go “Add source”, and add a source for simulation. A guide will popup where you can either add an existing file, or create a new one. Most likely you would like to do the later. The second popup is on creating ports for your file. Remove everything since this is only going to be a test-bench which has no connections to the external world.
  2. Secondly you are going to instantiate you design inside the test-bench. The test-bench can really┬ábe compared with an “old school” physical test-bench onto which you mount your “Unite-Under-Test”. You are so to speak connecting the wires between your design and the test-bench.
  3. When you have the design instantiated in your test-bench you will need to add functionalty to the test-bench. It needs to send stimuli to your device in order to test it. In our case here, the only stimuli we are needing is a clock signal.
  4. Now it is time to run the simulation (provided you did everything right). So go press “Run behavioral simulation” in the left manu and wait for ISim to open.