Program to output a static value
Posted:
Hello. I writing this program in order to understand better how Xillybus works. Starting from xillydemo.vhd, I want that the program prints out the value "01010101" whatever the user type as input in ./streamwrite /dev/xillybus_write_8. For example, if the user writes "hello" after executing ./streamwrite /dev/xillybus_write_8, on the other terminal in which ./streamread /dev/xillybus_read_8 is running, it has to appear "01010101" instead of "hello". What I have done, is to modify this piece of code of xillydemo.vhd:
As you can see, I have added on top of the code the line user_w_mem_8_data <= "01010101"; to force the data to be written in the memory. Unfortunately this method does not work. Any suggestion?
Thanks
- Code: Select all
begin
user_w_mem_8_data <= "01010101";
if (bus_clk'event and bus_clk = '1') then
if (user_w_mem_8_wren = '1') then
demoarray(ram_addr) <= user_w_mem_8_data;
end if;
if (user_r_mem_8_rden = '1') then
user_r_mem_8_data <= demoarray(ram_addr);
end if;
end if;
end process;
As you can see, I have added on top of the code the line user_w_mem_8_data <= "01010101"; to force the data to be written in the memory. Unfortunately this method does not work. Any suggestion?
Thanks