Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  IPC::Locker
  Parallel::Forker
  Voneline
General Info
  Papers

Issue #1507

Linting error: backward indexing

Added by Hao Shi 3 months ago. Updated 2 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Lint
% Done:

0%


Description

I think I met a false error in linting: Slice selection '[2:2]' has backward indexing versus data type's '[0:3]' Slice selection '[3:3]' has backward indexing versus data type's '[0:3]'

If the data type is declared as [3:0], then it won't complain. Therefore, it looks like that the tool treats [i:i] as big-to-small. However, it can still be treated as small-to-big.

Thanks, Hao

History

#1 Updated by Wilson Snyder 3 months ago

  • Category set to Lint
  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Thanks for the report, simple enough to fix.

Fixed in git towards 4.420.

#2 Updated by Hao Shi 3 months ago

Wilson Snyder wrote:

Thanks for the report, simple enough to fix.

Fixed in git towards 4.420.

Thanks for the quick fix. May I know when I can start to use the new version?

#3 Updated by Wilson Snyder 3 months ago

You can get it now from git, see the Install section. Typically releases (tarballs) are every month or so.

#4 Updated by Hao Shi 3 months ago

Wilson Snyder wrote:

You can get it now from git, see the Install section. Typically releases (tarballs) are every month or so.

Can you please see if my command has some issues? I used:

git clone http://git.veripool.org/git/verilator

Then "git tag" shows the latest version is verilator_4_018 or v4.018. Not quite sure if I missed anything.

Thanks, Hao

#5 Updated by Wilson Snyder 3 months ago

It's not released (until next monthish), use master branch, that is don't use any tag.

#6 Updated by Hao Shi 3 months ago

Let me know if it is better to open a new issue, since it is unrelated topic.

I am on the master branch right now, but I don't see the updates. Please see my command history:

hao@haos:~/Downloads/test/verilator$ git branch
  • master

stable

hao@haos:~/Downloads/test/verilator$ git pull

Already up-to-date.

hao@haos:~/Downloads/test/verilator$ git log

commit 3469c78153f51434e8ef89dfbd2fe4dd4227d966 Author: Wilson Snyder <> Date: Mon Sep 16 21:09:18 2019 -0400

Fix bad module name.

commit baa634343b44628872dd6623bf9726fcca755263 Author: Wilson Snyder <> Date: Fri Sep 13 07:20:26 2019 -0400

Fix config_rev revision detection on old versions.

#7 Updated by Wilson Snyder 3 months ago

Sorry, not having it in master was my fault, try again.

#8 Updated by Hao Shi 3 months ago

It worked fine. Thanks!

#9 Updated by Wilson Snyder 2 months ago

  • Status changed from Resolved to Closed

In 4.020. Thanks for reporting this; if there are additional related problems, please open a new issue.

Also available in: Atom