Forum Discussion
Altera_Forum
Honored Contributor
10 years agoi wanna to convert this code in vhdl
void main() { SerialPortInit(); /* Serial Communication – 9600-N-8-1 */ Send2Gsm("AT\r\n"); /* Transmit AT to the module – GSM Modem sends OK */ DelayS(2); /* 2 sec delay */ Send2Gsm("A...
Altera_Forum
Honored Contributor
10 years agoThere can be two ways for the implementation:
1. Design a NIOS II System with RS232 , SPI and other peripherals. Port your C code & libraries to NIOS II processor (though this may not be straight forward). Compile & generate the binaries. 2. Complete RTL implementation For this you need to write VHDL code for UART, SPI protocol. Assuming this is a college project, implementing SPI & UART code in RTL can be mini project in itself. So divide the task & then integrate the modules where in top file you will have the Sequence of function calls (Algorithm for Security System). Regards, Ritesh