From ba430add59514ec846e3275ade51bff7b8642b44 Mon Sep 17 00:00:00 2001 From: aottaviano Date: Wed, 24 Jan 2024 11:22:39 +0100 Subject: [PATCH] Deployed 64e1339 with MkDocs version: 1.5.3 --- index.html | 8 +++++--- sitemap.xml.gz | Bin 127 -> 127 bytes tg/sim/index.html | 20 ++++++++++++++++---- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 82fef9a3..9aa3634a 100644 --- a/index.html +++ b/index.html @@ -640,13 +640,15 @@

Quick Start

and then run a simulation with Questasim by typing:

-
make car-vsim-sim-build
-cd target/sim/vsim && car-vsim-sim-run CHS_BINARY=../../../sw/tests/bare-metal/hostd/helloworld.car.l2.elf
+
cd target/sim/vsim
+make car-vsim-sim-build
+make car-vsim-sim-run CHS_BINARY=../../../sw/tests/bare-metal/hostd/helloworld.car.l2.elf
 

To display the main Make build targets and their usage, from the root repository type:

-
make help
+
make help
 
+

The Make files are autodocumented.

License

Unless specified otherwise in the respective file headers, all code checked into this repository is made available under a permissive license. All hardware sources and tool scripts are licensed under diff --git a/sitemap.xml.gz b/sitemap.xml.gz index 5d7326db5082c6ef954d277ad77f9a796f70f759..1cbf7826dc0bc6cc7cc1a85557d9455a5166491b 100644 GIT binary patch delta 12 Tcmb=gXOr*d;CTOJB3mT@8~X&J delta 12 Tcmb=gXOr*d;Fx}4B3mT@8S?}- diff --git a/tg/sim/index.html b/tg/sim/index.html index 4c2021a0..59dd06dd 100644 --- a/tg/sim/index.html +++ b/tg/sim/index.html @@ -834,17 +834,29 @@

QuestaSim

After building Carfield, the design can be compiled and simulated with QuestaSim. Below, we provide an example with Serial Link passive preload of a baremetal program helloworld.car.l2.elf to be executed on the host domain (Cheshire, i.e., X=CHS):

-
# Compile the design
+
# Initialize Carfield
+make car-init-all
+
+# Enter Questasim folder
+cd target/sim/vsim
+
+# Compile the design
 make car-vsim-sim-build
 
 # Preload `helloworld.car.l2.elf` in passive bootmode through serial link, then start the simulation
-cd target/sim/vsim && make car-vsim-sim-run CHS_BOOTMODE=0 CHS_PRELMODE=1 CHS_BINARY=../../../sw/tests/bare-metal/hostd/helloworld.car.l2.elf
+make car-vsim-sim-run CHS_BOOTMODE=0 CHS_PRELMODE=1 CHS_BINARY=../../../sw/tests/bare-metal/hostd/helloworld.car.l2.elf
 

The design needs to be recompiled only when hardware is changed.

+

To clean simulation builds, from the vsim folder run

+
make car-vsim-sim-clean
+
+

To display general help for each Make target, type

+
make help
+

Debugging

Per default, Questasim compilation is performance-optimised, and GUI and simulation logging are -disabled. To enable full visibility, logging, and the Questa GUI, set DEBUG=1 when executing the -steps above.

+disabled. To enable full visibility, logging, and the Questa GUI, set DEBUG=1 when launching the +simulation.