Running A Simulation ======================================================== ReBAR provides support and intergration for multiple simulation flows, for various user levels and requirments. In the majority of cases during a digital design development process, simple software RTL. When more advanced full-system evaluation is required, with long running workloads, FPGA-accelerated simulation will then become a preferable solution. Software RTL Simulation ------------------------ The ReBAR framework provides wrappers for two common software RTL simulators: the open-source Verilator simulator. and the proprietry VCS simulator.The following instructions assume at least one of these simulators is installed. Verilator ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Verilator is an open-source RTL simulator. We run Verilator simulations from within the `sims/verisim` directory. In order to construct the simulator with our custom design, we run the following command within the `sims/verisim` directory: .. make TOP= CONFIG= SBT_PROJECT= MODEL= Where `` is the class name of the top level design, ` CONFIG= SBT_PROJECT= MODEL= or .. make run-asm-tests SUB_PROJECT=example VCS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ VCS is a proprietry RTL simulator. This guide assumes that the VCS installation is found on our PATH. We run VCS simulations from within the `sims/vsim` directory. In order to construct the simulator with our custom design, we run the following command within the `sims/vsim` directory: .. make TOP= CONFIG= SBT_PROJECT= MODEL= Where `` is the class name of the top level design, ` CONFIG= SBT_PROJECT= MODEL= or .. make run-asm-tests SUB_PROJECT=example FPGA Accelerated Simulation --------------------------- FireSim enables simulations at 1000x-100000x the speed of standard software simulation. This is enabled using FPGA-acceleration on F1 instances of the AWS (Amazon Web Services) public cloud. There FireSim simulation require to be set-up on the AWS public cloud rather than on our local development machine. To run an FPGA-accelerated simulation using FireSim, a we need to clone the ReBAR repository (or our fork of the ReBAR repository) to an AWS EC2, and follow the setup instructions specificied in the FireSim Initial Setup documentation page. After setting up the FireSim environment, we now need to generate a FireSim simulation around our selected digital design. We will work from within the `sims/firesim` directory. TODO: Continue from here