Posts

Showing posts from December 2, 2018

File:Monomitopus agassizii.jpg

Image
File:Monomitopus agassizii.jpg From Wikipedia, the free encyclopedia Jump to navigation Jump to search File File history File usage Global file usage Size of this preview: 799 × 263 pixels. Other resolutions: 320 × 105 pixels | 1,172 × 386 pixels. Original file ‎ (1,172 × 386 pixels, file size: 64 KB, MIME type: image/jpeg ) This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. Monomitopus agassizii . From plate 82 of Oceanic Ichthyology by G. Brown Goode and Tarleton H. Bean, published 1896. Public domain Public domain false false This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 70 years or less . You must also include a United States public domain tag to indicate why this work is in the public domain in ...

Web-service call from android app takes 10 mins to reflect the latest results

Image
up vote 0 down vote favorite Am Struggling with one of the issues of being service taking almost 10 mins to reflect the updated results. Actually, am using an API of type Get, the structure of the service is like this: www.abc.net/wp-json/wp/v2/posts?categories=192&page=1&per_page=2 When I try to call the service from the browser it's showing the updated information, but when I try to call the same service from my android app using retrofit it's delaying the updated response by almost 10 mins. Here is the code mentioned in my last question about the same : public class ApiClient private static Retrofit retrofit = null; public static Retrofit getClient() HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor(); interceptor.setLevel(HttpLoggingInterceptor.Level.BODY); OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); httpClient.addInterceptor(new Interceptor() @Override public Response intercept(Interceptor.Chain chain) throws IOEx...

How to access VHDL signal attributes in ModelSim via TCL?

Image
up vote 1 down vote favorite I am developing a CPU in VHDL. I am using ModelSim for simulation and testing. In the simulation script I load a program from a binary file to the instruction memory. Now I want to automatically check if the program fits into memory and abort simulation if it doesn't. Since the memory is basically an array of std_logic_vectors, all I would have to do is read the corresponding signal attribute for use in a comparison. My problem is: How do I access a VHDL signal attribute in TCL inside ModelSim? The closest I have gotten so far is to use the describe command: describe sim/:tb:uut:imem:mem_array which prints something like # Array(0 to 255) [length 256] of # Array(31 downto 0) [length 32] of # VHDL standard subtype STD_LOGIC Now, of course I could parse the length out of there via string operations. But that would not be a very generic solution. Ideally I would like to have something like this: set mem_size [get_attribute sim/:tb:uut:imem:mem_...