Renode: lub moj khaum no yog dab tsi thiab vim li cas koj yuav tsum saib xyuas?

Hloov npe IO

Los ntawm Renode Nws yog txoj haujlwm tsis ntev los no uas tsis muaj ntau tus paub txog, tab sis uas tuaj yeem nyiam rau ntau tus tsim, amateurs uas ua lawv tus qauv nrog Arduino o Raspberry Pi, thiab cov kws tsim khoom tsim cov haujlwm IoT thiab cov kab ke sib xyaw. Vim li no, nws muaj ntau dua thiab txhawb nqa, tutorials thiab cov ntsiab lus ntawm lub vev xaib.

Kom paub ntxiv txog qhov no nthuav qhib qhov project, koj tuaj yeem nyeem cov ntawv no nrog qhov tseem ceeb kom paub nws thiab pib ua haujlwm nrog nws hauv koj cov dej num yav tom ntej ...

Lub moj khaum yog dab tsi?

lub moj khaum

Los ntawm Renode nws yog lub moj khaum, ib yam li lwm tus. Rau cov neeg uas tseem tsis tau paub dab tsi uas yog, nws yuav tsum raug sau tseg tias lub rooj sib txig yog cov txheej txheem qauv uas cia siab rau cov hom phiaj sib txawv, thiab nrog lub hom phiaj txuag lub sijhawm, xws li kev txhim kho, daws teeb meem, ntxiv kev txhawb nqa ntawm cov programmes, cov tsev qiv ntawv, cov cuab yeej, thiab lwm yam.

Dab tsi yog Renode?

Nyob rau hauv cov ntaub ntawv ntawm Renode, yog lub moj khaum uas tso cai rau kev ua kom sai ntawm kev tsim cov hauv tshuab thiab IoT, tso cai rau kev sim ua kom lub zog kho lub cev, nrog rau CPUs, I / O peripherals, sensors, thiab lwm yam hauv ib puag ncig. Yog li no, nws yuav cia koj khiav, debug thiab kuaj tsim software tsis hloov koj lub PC lossis siv lwm yam platforms.

Raws li rau txhawb nqa daim hlaumuaj ib tug loj ntawm lawvCov. Ntawm cov uas muaj Xilinx, ST Micro, Microchip PolarFire, SiFive, thiab lwm yam.

Koj kuj yuav tsum paub tias Renode yog a qhib qhov project, txawm hais tias nrog kev coj mus muag txhawb ntawm Antmicro. Tsis tas li ntawd, nws tso cai rau simulate Npab thiab RISC-V kho vajtse, ua kom muaj kev txhim kho sai thiab pab txhawb rau cov software tsim ua haujlwm hauv IoT ntiaj teb.

Renode ua tiav ntau, muaj zog thiab ua haujlwm. Yog li ntawd ntau npaum li cas, hais tias TensorFlow Lite pab pawg nws tus kheej siv nws txhawm rau ua kom txoj kev loj hlob tsis siv neeg Caj npab thiab RISC-V platform, kuj muaj x86, SPARC, thiab PowerPC. Tsis tas yuav muaj kev kho vajtse los ntawm cov cuab yeej no rau kev sim.

Cov Lus Qhia Ntxiv - Lub vev xaib Renode.io project

Txhawb nqa platforms

Raws li rau txhawb nqa cov platforms rau Renode moj khaum, uas koj tuaj yeem ua haujlwm, yog:

Hais txog qhov hnyav, nws tsuas yog ob peb lub kaum ntawm MB, yog li nws tsis yog qhov hnyav.

Nruab Renode ib kauj ruam yog kauj ruam ntawm Linux

Noj raws li siv cov Ubuntu distro, nruab Renode Nws yog qhov yooj yim raws li cov kauj ruam no:

  • Txaus siab rau cov uas muaj, xws li ntawm Mono:
sudo apt update
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-complete

  • Tom qab ntawd, koj yuav tsum txaus siab lwm yam vam khom:
sudo apt-get install policykit-1 libgtk2.0-0 screen uml-utilities gtk-sharp2 libc6-dev

  • Tam sim no, nkag mus rau qhov no web thiab download el DEB pob.
  • Tom ntej no yuav yog mus rau ntawm Downloads cov ntaub ntawv uas koj tau download tus .deb thiab nruab (Nco ntsoov hloov lub npe nrog lub version uas raug rau koj):
cd Descargas

sudo dpkg -i renode_1.7.1_amd64.deb

Khiav Renode thawj zaug hauv thawj zaug thiab thawj kauj ruam

Tam sim no koj tuaj yeem khiav Renode thawj zaug thiab pib nrog koj cov phiaj xwm thawj zaug. Rau nws ua tiav, koj tsuas yog yuav tsum ua qhov kev txiav txim:

renode

Qhov no yuav qhib ib ua haujlwm lub qhov rais los ntawm Renode qhov chaw uas koj tuaj yeem nkag mus rau cov lus txib los tsim thawj lub tshuab lossis tswj hwm nws. Piv txwv li, txhawm rau tsim lub tshuab kom zoo ib yam ntawm pawg thawj coj saib xyuas STM32F4Discovery:

mach create
machine LoadPlatformDescription @platforms/boards/stm32f4_discovery-kit
.repl 

Koj tuaj yeem ua tau saib cov khoom siv muaj nyob rau ntawm lub platform nrog:

(machine-0) peripherals

Los ntawm txoj kev, tshuab-0 nws yuav ua lub neej ntawd lub npe tshuab yog tias koj tsis tau xaiv lwm tus. Nws yuav tshwm sim "nrawm" ib zaug koj tsim lub tshuab ...

Rau thauj cov program koj xav khiav ntawm lub tshuab simulated no los ntsuam xyuas nws, koj tuaj yeem siv (xws li: qhov no tuaj ntawm Antmicro):

sysbus LoadELF @http://antmicro.com/projects/renode/stm32f4discovery.elf-s_445441-827a0dedd3790f4559d7518320006613768b5e72

Koj kuj tseem thauj nws los ntawm ib qho chaw nyob hauv nroog, piv txwv li, xav txog tias koj xav thauj ib qho kev pab cuam uas koj muaj nyob rau hauv:

sysbus LoadELF @mi-ejemplo.elf
Koj tuaj yeem pom tag nrho cov lus txib koj tuaj yeem siv thiab pab yog tias koj siv cov lus txib pab nyob rau hauv Ib puag ncig Renode.

Tom qab ntawv koj tuaj yeem ua tau pib emulation:

start

O cheem nws nrog:

pause

 

Kuv vam tias nws tau pab rau koj…

Renode pab qhia

Txawm hais tias nws tsis tshua nquag, muaj ntau thiab ntau dua tutorials thiab cov vev xaib uas koj tuaj yeem sab laj cov ntaub ntawv hais txog kev siv Renode. Ib qho ntxiv, nplooj ntawv ua haujlwm nws tus kheej muaj ntu ntu kev qhia yeeb yaj kiab nrog uas los kawm cov hauv paus pib pib koj cov dej num.

Saib tutorials

Saib cov ntaub ntawv thiab wiki


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

Yog thawj tus tuaj tawm tswv yim

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.