|
From: Sab VS <sab...@gm...> - 2018-04-23 21:29:52
|
Hi Martin, Apprciate the response. I will check the write enable and get back. Is there anyway to see what exactly is happening at the timestep level in iverilog? Is there some file that I can produce to see how the simulator is doing the write? On Mon, Apr 23, 2018 at 2:31 PM, Martin Whitaker < ic...@ma...> wrote: > Sab VS wrote: > >> Hi, >> >> I am currently trying to debug a piece of code which is not working >> correctly in the iverilog simulator. >> >> The code shows that the mem_write_data changes every clock cycle. >> >> However, the mem_0 is not changing. I am writing into mem_0 using the >> following >> >> mem_0[addr_block]<=mem_write_data[2*`PIXEL_WIDTH-1:0] >> >> In Xilinx I see the expected value. Is this an iverilog problem or am I >> doing something wrong? >> >> I have created a short gist >> https://gist.github.com/raiderark/9a857fc48d5ce9bac9bfa5b54acc3e9c . >> Please >> comment out the unused modules in order to compile. >> >> Could someone please help me out? >> > > Not easily, no. Your test case fails to compile, due to a missing include > file. > > The chances are that there is a race in your code, leading to different > results with different simulators. Check the timing of your memory write > enable signal - is it guaranteed to be stable before the clock edge? > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Iverilog-devel mailing list > Ive...@li... > https://lists.sourceforge.net/lists/listinfo/iverilog-devel > |