vivo_m
Member level 3
- Joined
- May 15, 2011
- Messages
- 54
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,903
Hello everybody,
I'm trying to link Modelsim to matlab.
i've built a block using modelsim that has 6 inputs clock, reset , and it will take the other 4 values from matlab's workspace and its output will be taken to a "scope component" to display the output on it..
i followed the required steps but when i click "start simulation" in simulink window the error message below occur
"
Error reported by S-function 'shdlcosim' in 'testing_env/HDL Cosimulation/S-Function':
Continuous sample time not allowed for input port 0 of cosim block.
"
i don't know what is this input "port 0 of cosim block" ..
i thought its related to the clock as i'm connecting the "clock input port" by a "clock component" from the simulink library and setting the clocks tab to a rising edge clock at the same time..
when i removed the clock component the error message was the same except it becomes for input port 1 as below
"
Error reported by S-function 'shdlcosim' in 'testing_env/HDL Cosimulation/S-Function':
Continuous sample time not allowed for input port 1 of cosim block.
"
any idea how can i overcome this plzzz..
I'm using matlab (R2010a), modelsim PE
any help plzzz
thanks...
I'm trying to link Modelsim to matlab.
i've built a block using modelsim that has 6 inputs clock, reset , and it will take the other 4 values from matlab's workspace and its output will be taken to a "scope component" to display the output on it..
i followed the required steps but when i click "start simulation" in simulink window the error message below occur
"
Error reported by S-function 'shdlcosim' in 'testing_env/HDL Cosimulation/S-Function':
Continuous sample time not allowed for input port 0 of cosim block.
"
i don't know what is this input "port 0 of cosim block" ..
i thought its related to the clock as i'm connecting the "clock input port" by a "clock component" from the simulink library and setting the clocks tab to a rising edge clock at the same time..
when i removed the clock component the error message was the same except it becomes for input port 1 as below
"
Error reported by S-function 'shdlcosim' in 'testing_env/HDL Cosimulation/S-Function':
Continuous sample time not allowed for input port 1 of cosim block.
"
any idea how can i overcome this plzzz..
I'm using matlab (R2010a), modelsim PE
any help plzzz
thanks...
Last edited: