Exam text content

TIE-05210 Johdatus sulautettuihin järjestelmiin - 14.10.2019

Exam text content

The text is generated with Optical Image Recognition from the original exam file and it can therefore contain erroneus or incomplete information. For example, mathematical symbols cannot be rendered correctly. The text is mainly used for generating search results.

Original exam
TIE-05210 Johdatus sulautettuihin järjestelmiin 5 op

Matti Haavisto Tentti 14.10.2019

 

+ Tentissä ei saa käyttää laskinta eikä mitään lisämateriaalia.
+ Kirjoita/piirrä vastauksesi selvästi.

1 Selitä (ä 2p)
a) AND-portti
b) siirtäjä (shifter)
c) ALU (aritmeettis-looginen yksikkö)
d) ohjelmalaskuri (program counter, PC)
e) funktiokutsu.

2 Suunnittele hyviä kombinatorisen logiikan suunnittelusääntöjä noudattaen vertailija.
Vertailtavat luvut A ja B ovat 1 bittisiä perusbinäärilukuja. Vertailijan toimintaa ohjataan
signaalilla S. Kun S on 1, lähdön arvo on tosi, jos A>B. Kun S on 0, lähdön arvo on tosi,
jos A<B. (6p)

3 a) Kirjoita alla olevaa assembly-kielistä ohjelmaa vastaava C-kielinen ohjelma.
Muuttujien nimet saat päättää itse. (4p)

0x00000024: LDR r2, [r11,4-8]
0x00000028: LDR r3, [r11,%-0xc]
0x0000002c: CMP 22.83
0x00000030: BNE 0Ox44
0x00000034: LDR 13, [r11,4-8]
0x00000038: SUB 13,73, 1
0x0000003c: STR r3, [r11,4-8]
0x00000040: B 0x50
0x00000044: LDR r3, [r11,%-0xc]
0x00000048: ADD F3,:3, 41
0x0000004C: STR r3, [r11,%-0xc]
0x00000050:

b) Piirrä kuva yllä olevan funktion aktivaatiotietueesta siltä osin kuin se on tiedossa.
Käytä a-kohdan muuttujien nimiä. (3p)


We use cookies

This website uses cookies, including third-party cookies, only for necessary purposes such as saving settings on the user's device, keeping track of user sessions and for providing the services included on the website. This website also collects other data, such as the IP address of the user and the type of web browser used. This information is collected to ensure the operation and security of the website. The collected information can also be used by third parties to enable the ordinary operation of the website.

FI / EN