• Content Count

  • Joined

  • Last visited

About MartinBuk

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Promlem solved :). I found this sentence in MIG datasheet "The LSBs of the AXI byte address are masked to 0, depending on the data width of the memory array. If the memory array is 64 bits (8 bytes) wide, AXI address[2:0] are ignored and treated as 0." I've used the first three bits as an address and it didn't work I'm gonna modify the code and share with you. Maybe it will be helpful for someone.
  2. I used switches because i work with them in previous project (like component). My solution is rather simple. I don't need debounce both way, because it has already built in this solution. I noticed that debounce filter has to be set for event about 1.2 ms long. It means that clock in process should be about 22KHz. process(CLK22KHZ) begin if rising_edge(CLK22KHZ) then but_buffer1 <= but_buffer1(39 downto 0) & INPUT(0); end if; end process OUTPUT(0) <= '1' when but_buffer1 = X"FFFFFFFFFF" else '0';
  3. yeah i've kind of done that. not with button but with switch. Loop isn't running over and over again, because it is checking actual and previous state on switches. if i decide to change adress or read/write mode, the loop will run again and stop. I think that was your point. or did i miss your idea? Martin
  4. You're right. i figured out, that address is the problem. i can't use the first three bits like an address. Rest works just fine. I don't know how is it so, but i can live with that. If you have any idea, let me know... thank you, Martin
  5. Maybe the issue is caused by IP implementation in my code. I set MIG by digilent and created own constraint file. As is shown below. Maybe MIG creates own constraint file as well. Do you know how IP core works? ##DDR2 SRAM set_property -dict { PACKAGE_PIN R7 IOSTANDARD SSTL18_II } [get_ports { ddr2_dq[0] }]; set_property -dict { PACKAGE_PIN V6 IOSTANDARD SSTL18_II } [get_ports { ddr2_dq[1] }];
  6. I've done this in different way. Maybe someone find it helpful. For example: if you put number 0.1100000000000000000000 it gives you "100011110000110100011000000" (75000000 dec). ----------------------------------float_to_bin--------------------------------------------- process(CLK100MHZ) variable sum : unsigned(49 downto 0) := (others => '0'); --0.50000000 --eight valid numbers ('0' & "5000 0000" & ---ZEROS---) constant const : unsigned(49 downto 0) := "01011111010111100001000000000000000000000000000000"; begin if ris
  7. There aren't any more meaningful logic circuits. In the final state(stWaitAct) of the state machine it is checking differences between actual and previous switch value. SWI is filtered output from physical switch. I wanted to avoid bouncing value. Maybe i would try to stretch de-bounce filter more. Request change between clock 1 and clock 3 could happen but it is unlikely. Because i was waiting to signal diode LED(15) in the final state.. process(sig_clk) begin if rising_edge(sig_clk) then if aState = stWaitAct then if adress /= SWI(15 downt
  8. Which access do you mean? like Read, Read? If you mean access to data it shoul be feasible. Because i use switches and the state machine is waiting to my physical action. Should i use variables in different way? By the way thank you for your effort. i appreciate that.
  9. yeah, sorry for my english... The demo should somehow store data and be able to read them as well. for example (problem): i wrote data into address "001" and i could read them from same address. after that i was trying to wrote data into address "010" and i could read them as well but when i changed adress back to "001" in reading mode it was empty.
  10. no.. it was just for testing reason. That's demo where i want to verify the reading and writing into memory. in furture, i want to create data stream from camera.
  11. Hi guys, I've been working on implementation MIG into my project. I have a problem with write data into DDR2 (nexys 4ddr). Actually, it works but, if i want to write data into different address location. The previous one are lost. I can read and write data from the adress but i can't write data into an another addres and read both adress location. some how the previons data are lost. I will be very grateful for any help... process(sig_clk) begin if rising_edge(sig_clk) then case aState is when stInit => if sig_calib_co