- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I designed a sinwave.mdl yesterday using dspbuilder with the altbus and step block,
but when I simulate it , the process is failed because the source data's type (coming form the step block)is double ,conflicting with the ALTBus's tye (I defined it is "single bit"), what can I do for it ? the error notes: Data type mismatch. Input port 1 of 'mymodel/sinctrl' expects a signal of data type 'DSPB_Type'. However, it is driven by a signal of data type 'double'. Data type mismatch. Output port 1 of 'mymodel/Step' is a signal of data type 'double'. However, it is driving a signal of data type 'DSPB_Type'. Please help me ,thanks!Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You need to add Input and Output blocks around the DSP Builder blocks. These serve to delimit the system that will be synthesized and your testbench. These blocks can be found in the IO & Bus part of the DSP Builder library.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
what's the differents between the altbus and the input block? and how to set the altbus to input type? I have't know all the dsp librarys very much,are there some books introduce them ? thanks!
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Before 7.1, there was not much difference between the two blocks. This was when DSP Builder just used double precision floating point numbers for its signal values. Consequently DSP Builder couldn't work properly with signals wider than 51 bits. (The width of the mantissa).
With 7.1 however, DSP Builder supported arbitrary precision signals using its own type, DSPB_TYPE. This type is not recognised by ordinary Simulink blocks so the Input and Output blocks act as a bridge converting the types at the borders of the system. The Altbus block is then just an internal conversion block. For instance, it can convert from a signed number to an unsigned number or to a fractional number. It can also be used to change the bit-width of a signal.- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thanks very much!:)

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite