Community
    • Login

    Bug in VHDL color coding

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 1 Posters 2.6k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Andrey AshA Offline
      Andrey Ash
      last edited by

      The following code would not always get proper color coding. Usually it would pick an end of any line in the generic description, i.e. after the “&” sign, and after that line no code will be color coded. When one enters any character at that line, the color coding comes back. This bug comes back when scrolling around. Below is the code example.

      ----------------------------------------------------------------
      -- Comment
      test_inst : entity work.test_top
          generic map
          (
              co_cfg_filename =>
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "ram_init.mif",
              bp_mem_cfg_filename => 
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "bram_init.mif",
              mi_mem_cfg_filename =>
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "mram_init.mif",
              c_mem_cfg_filename => 
              -- synthesis translate_off
              "$PRJ_DIR\rtl\test\"&
              -- synthesis translate_on
              "cram_init.mif"
          )
          port map
          (
              rst_in => rst,
              clk_in => clk_in,
              test_out_ram_wea => test_out_ram_wea,
              test_out_ram_addra => test_out_ram_addra,
              test_out_ram_dina => test_out_ram_dina,
              ram_douta => ram_douta
          );
      
      1 Reply Last reply Reply Quote 0
      • Andrey AshA Offline
        Andrey Ash
        last edited by

        You can actually see wrong color coding in the example here also, it thinks the last “-- synthesis translate_on” comment continues forever, which is not the case.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors