Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to test DE-115 with this example for writing C language
    primarykey
    data
    text
    <p>i use SOPC choose CPU, onchip memory 4096Bytes, LED, Switch, then it auto generate following file, then i comment some code in test_bench,</p> <p>and write to board, it only turn the light, i can not turn off with switch then i open eclipse with SOPC, and genearte BSP, then build project and open flash programmer in eclipse, the start button is disable, and do not know where is compile and load button</p> <pre><code>module test_bench ; wire clk; reg clk_0; wire [ 7: 0] in_port_to_the_Switches; wire jtag_uart_0_avalon_jtag_slave_dataavailable_from_sa; wire jtag_uart_0_avalon_jtag_slave_readyfordata_from_sa; wire [ 7: 0] out_port_from_the_LEDs; reg reset_n; // &lt;ALTERA_NOTE&gt; CODE INSERTED BETWEEN HERE // add your signals and additional architecture here // AND HERE WILL BE PRESERVED &lt;/ALTERA_NOTE&gt; //Set us up the Dut testsopc1 DUT ( .clk_0 (clk_0), .in_port_to_the_Switches (in_port_to_the_Switches), .out_port_from_the_LEDs (out_port_from_the_LEDs), .reset_n (reset_n) ); /* initial clk_0 = 1'b0; always #10 clk_0 &lt;= ~clk_0; initial begin reset_n &lt;= 0; #200 reset_n &lt;= 1; end */ endmodule #define Switches (volatile char *) 0x0003000 #define LEDs (char *) 0x0003010 int main() { while (1) { *LEDs = *Switches; } return 0; } </code></pre> <p><img src="https://i.stack.imgur.com/GKhNj.png" alt="enter image description here"></p> <p><strong>Update the project link</strong></p> <p><a href="https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!361" rel="nofollow noreferrer">https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!361</a></p> <p>when i open the project to build project again it said RUN_ON_HDL_SIMULAGTOR_ONLY xxxx.elf error 1</p> <p>then i build BSP again and build project again, it become make all complete then i remember to make clean, it got the error again and then build again</p> <p>however, no matter what i do, i turn on or off switch, it only light turn on, and never off</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload