![]() |
|
|
|
#1 |
|
I have to generate a two-dimension array of semiadders using the for...
generate sentence (to model a multiplier). But I'm stuck because I've always used for...generate to model a simple array of components, not a matrix This is the image of my matrix of semiadders: S02 S01 S00 S12 S11 S10 S00 is connected to the output and S10 S01 is connected to S10 and S11 S02 is connected to S11 and S12 My question is, should I generate each row with "for...generate" sentences? Could you post a simple 2x2 matrix example so that I clear my mind? Thanks Xin Xiao |
|
|
|
|
#2 |
|
Posts: n/a
|
Xin Xiao schrieb:
> I have to generate a two-dimension array of semiadders using the for... > generate sentence (to model a multiplier). But I'm stuck because I've > always used for...generate to model a simple array of components, not a > matrix Maybe this helps: Every n*m matrix can be written as an array with n*m elements (concatenation of every matrix row / column). Ralf Ralf Hildebrandt |
|
|
|
#3 |
|
Posts: n/a
|
Thanks Ralf, yes, i solved my problem with two anidated --for generate-- and
some --if generate-- it was simple! tnks, Xiao "Ralf Hildebrandt" <Ralf-> wrote in message news:... > Xin Xiao schrieb: >> I have to generate a two-dimension array of semiadders using the for... >> generate sentence (to model a multiplier). But I'm stuck because I've >> always used for...generate to model a simple array of components, not a >> matrix > > > Maybe this helps: Every n*m matrix can be written as an array with n*m > elements (concatenation of every matrix row / column). > > Ralf Xin Xiao |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Dial-up Modem Question | w_tom | A+ Certification | 0 | 09-18-2005 09:12 PM |
| "Installing two drives" question - what next? | Jim | A+ Certification | 12 | 08-07-2005 01:19 PM |
| Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good | God | DVD Video | 3 | 04-25-2005 04:19 PM |
| Re: Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good | Filthy Mcnasty | DVD Video | 0 | 04-25-2005 04:29 AM |
| Re: Safe Mode Question (A+ question) | Gordon Findlay | A+ Certification | 0 | 06-16-2004 10:48 AM |