- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi every body
im new to vhdl i wanna write a code for this picture but for its N-scale http://i41.tinypic.com/35ksllh.png so i need to have N vectors with different length.N is a parameter. how i should write the code?Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
just have an array of vectors to the maximum length, and only use the number of bits you need. Bits left unconnected will be removed by the synthesisor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another option is to build a recursive component that reduces the width of the input and output vector with each recursion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Another option is to build a recursive component that reduces the width of the input and output vector with each recursion. --- Quote End --- thanks,but how i should do it? and in the main entity how i can use components output since the output has different length!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank u my friend
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