Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I already have the verilog code for the G-sensor of my board(DE0-Nano) , when the board is rotating then the 8 led are flashing. I want to write a code that will record data (X Y Z) from the movement of the board and store the data to the 32MB memory. I'm a little bit of VHDL user and i don't know nothing about verilog. --- Quote End --- Port the Verilog code to VHDL. The G-sensor interface is probably just a finite-state-machine and control data path. Synchronous logic: always @ (posedge clk, negedge reset_n) becomes process(clk, rstN) Asynchronous logic:always @ (a, b, c) becomes process (a, b, c) Asynchronous logic:assign a = b; becomes a <= b; However, if the Verilog code is unreadable, then its pointless porting it. Just write it yourself. Cheers, Dave