- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my design, sometimes I need to adjust bus width such as:
wire [10:0] a; wire [5:0] b; assign b={a[10:9],a[3:0]}; I always program like this. But it seems in some design it will cause problem and there are some errors which I can't understand appear in ModelSim simulation. I just wonder is there any other approaches to do bus width adjust which is better? Thanks very much.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The syntax is correct. I used it in ModelSim, too, but I never had problems.
What do you mean with "some errors"? Compile or functional simulation?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry Cris, actually I did not express exact. I just wonder whether this syntax may cause problem in static timing analysis? Based on my understanding, it should not since this is just connecting wire.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With functional simulation I indeed meant static timing analysis.
So the answer is still Yes: your syntax is correct. You probably have an error somewhere else.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks very much, I will check.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page