vak: (Default)
[personal profile] vak
Если кто желает набить руку (или морду) и поупражняться с SystemC/TLM, я набросал несколько примерчиков на скорую руку. Скрестил это дело с Googletest, для простоты прогона.

Исходники здесь: https://github.com/sergev/systemc-tlm-demo

Собирается всё тривиально, смотрите README. Всего там четыре теста нарастающей степени сложности, от тривиального до процессор+память.

Запуск тестов после сборки:
$ make test
Running tests...
Test project /Users/vak/Project/SystemC/systemc-tlm-demo/build
Start 1: test_build
1/4 Test #1: test_build ....................... Passed 0.00 sec
Start 2: test_run3
2/4 Test #2: test_run3 ........................ Passed 0.00 sec
Start 3: test_thread
3/4 Test #3: test_thread ...................... Passed 0.00 sec
Start 4: test_mem
4/4 Test #4: test_mem ......................... Passed 0.00 sec

100% tests passed, 0 tests failed out of 4

Total Test time (real) = 0.02 sec
Про внутренности СистемСи смотрите мой предыдущий пост: что такое TLM и как с ним бороться.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org