12.07.2015 Views

Solution Quiz automne 2009 - Moodle - École Polytechnique de ...

Solution Quiz automne 2009 - Moodle - École Polytechnique de ...

Solution Quiz automne 2009 - Moodle - École Polytechnique de ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INF8500 - Intra - Automne <strong>2009</strong>Question 5 (4 points) Synthèse ESL avec Cynthesizer (labo 1)Considérez un module SystemC avec les ports d’entrée in et valid_in, les ports <strong>de</strong> sortie out etvalid_out, et dont la fonctionnalité (son SC_CTHREAD) est donnée par le bout <strong>de</strong> co<strong>de</strong> ci<strong>de</strong>ssous:1: int i;2: unsigned int in_data [256];3: unsigned int out_data[256];4:5: while(1) {6:7: while(valid_in.read() == false) {8:9: }10:11: for(i=0;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!