05-28-2009 12:30 AM
I have spartan 3e starter kit. I wanted the example "hw in the loop" to prove that it realy sits there. I just wanted to blink leds. I created spartan_3ebsp according to manual ( 2 days struggle), I modified example project only by adding output gate (name leds as in bsp - 8 bit vector)
- I followed the guide about the audio example which is the only example I found( which suposed to cooperate with hardware). Nothing work. (virtual imagination)
- When I tried to implement my own design the project compiles sucessfuly , but box doesn't have labels on pins (!!!!)
- No support for bi ports (!!!) How to send anything to lcd
- Many many errors on matlab console event if it compiles sucessfully.
- BUGs - accessing the project directory from symlink (in windows) says no such file (mdl) (!!!!!!)
Does anyone have working example (preferably in spartan) which throw me off mizerable mood?
05-28-2009 02:32 AM
If it's your first time to run Hardware cosim, I would suggest you keep design as simple as possible. Just use constant '1's to drive some LEDs, '0' to drive the others.
Since Spartan3E starter Kit isn't in the list, you need to setup your hardware platform by using SBDBuilder.
Regarding Bi ports, you need to instantiate IOBUFs in your design and wrapper them into black box. It should be fine.
05-28-2009 03:19 AM
1. Do You know the project modfication which might be more simple ?
Could there be less, then 1 port modification? (0.5)
I had run SBDBuilder. Library mdl shows nmm ports.
besides I typed command xlSetNonMemMap(gcbh, 'Xilinx', 'GPS');
Now at least the compiler recognizes nmm port.
It shows now outputs of only memory maped ports (great!)
It event reports port names spelling errors if I change port name on the project and in SBDBuilder.
But except that still nothing works !!!???
I have chacked jtagcosim_top.ucf. It's as expected.
SHOULD I ADD CLOCK TO NMM PORTS IN SBDBUILDER?
BY THE WAY: How sysgen know what is clock in the blackbox ?
2. about bi ports
can I assign bi_port_in LOC = 'T4', and bi_port_out = LOC ='T4' ?
You say sth about block fo bi comunication.
I think You forgot it's a hardware interface issue. Software doesn't solve it. It must be declared somehow as input/output. otherwise it's not bi port
05-28-2009 03:24 AM
" you need to instantiate IOBUFs in your design and wrapper them into black box. It should be fine. "
It's not possible in in System Generator.
You must be talking about sth else
05-28-2009 03:34 AM
Another error/bug :
I connect bool constant to compiled block (there are no labels however math console says it's pwm_en as expected).
The systems says:
"Input must be driven by SIMULINK fixed point of double"
So I connect fixed constant
The system says (Noble for the one who invented it):
"The pwm_en port is being driven by a UFix_8_0.
The pwm_en port must be a Bool."
Has anyone made successfull project in this ... (I should say application)? (I hope to see sth as simple as possible in spartan 3e starter kit) Preferably constant -> output port
Is this application a beta version?
05-29-2009 12:43 AM
SOLVED (in 1%)
I finally achieved myself what I have expected to see in this forum. simplest example work.
Why this work and other don't I still don't know. It's a blessed miracle!!!!!
It only proves that my hardware driver (bsp) is working well
Although it works I still don't understand it's behaviour.
The program sets some led via constant but other with button.
when I press the button the led flashes (OK)
but when I release it it goes off after 5 sec ( system period 1sec). Why ?
I think the problems I had before (except obvious bugs) were related partly to clk pin (I still don't know how clk pin is recognized)