|
Post by T C Surendhar on Apr 26, 2013 12:03:36 GMT
Can any body tell me, How nano blue stack can be directly(or any other) connect with SystemC TLM model of BLE Controller?
|
|
|
Post by T C Surendhar on Apr 29, 2013 7:18:48 GMT
Hello Akhil, My question was different, It is not related to what BLE controller has(either processor or processor free). please read that question again, "Can any body tell me, How nano blue stack can be directly(or any other) connect with SystemC TLM model of BLE Controller?"
Here I'm asking How Nanoblue stack(host software stack) can be ported with model of BLE controller?
Thanks T C Surendhar
|
|
|
Post by richa11verma on Apr 29, 2013 10:48:11 GMT
There could be two possible cases of writing stack: 1) Stack is written in C 2) Stack is written in C++
Solution for 1) As systemC is based on C++, so C/C++ linkers can be used to link stack and SystemC TLM model.
Solution for 2) Simply call the functions of stack in SystemC TLM model and vice versa.
|
|
|
Post by T C Surendhar on Apr 29, 2013 11:17:11 GMT
There could be two possible cases of writing stack: 1) Stack is written in C 2) Stack is written in C++ Solution for 1) As systemC is based on C++, so C/C++ linkers can be used to link stack and SystemC TLM model. Solution for 2) Simply call the functions of stack in SystemC TLM model and vice versa. Ok, Thanks, Now I have next question. If we have BLE model as executable file(like application) related to windos/linux/cross platform then how nanoblue stack will port with that model(executable file)?
Thanks T C Surendhar
|
|
|
Post by Akhil Kumar on Apr 30, 2013 4:41:08 GMT
There could be two possible cases of writing stack: 1) Stack is written in C 2) Stack is written in C++ Solution for 1) As systemC is based on C++, so C/C++ linkers can be used to link stack and SystemC TLM model. Solution for 2) Simply call the functions of stack in SystemC TLM model and vice versa. Ok, Thanks, Now I have next question. If we have BLE model as executable file(like application) related to windos/linux/cross platform then how nanoblue stack will port with that model(executable file)?
Thanks T C SurendharAs per my view, the compiled stack will be located at a specific location which will be known to the executable file. When we execute SystemC/TLM model, it will read the stack file hex code into SystemC/TLM memory which will be further used by the program counter for controlling the hardware. Functions readfile() or openfile() can be used for reading the file in C++.
|
|