T
thomasc
Guest
how to suspend a module in the middle of its operation (or how to implement
C 'goto' statement in Verilog)
Suppose we want to implement a hardware usng Verilog.
This hardware is composed of 3 modules(a, b, c). Module a begins first.
Depending on the result from module a, the next module to be executed can
be either module b or module c. In other words, if module a finishes its
operation without any problem, module b turns on and does its calculation.
But if a certain condition occurs during module a operation, module c
should be executed and module a should stop its operation(or be turned
off). I'm looking for a way to make module a stop its operation in such a
case.
This should be very similar to 'goto' statment in C language. I used
'disable' and named-block in Verilog to implement this and succeeded
simulation. However, while trying to synthesize it, Xilinx ISE6.3i gave an
error message("Unsupported Disable Statement") and failed sythesizing it.
Anyone plese let me know:
-how to make a module turn off itself in the midle of its operation or
-how to implement 'goto' statement in C language using Verilog.
Thanks much in advance!
C 'goto' statement in Verilog)
Suppose we want to implement a hardware usng Verilog.
This hardware is composed of 3 modules(a, b, c). Module a begins first.
Depending on the result from module a, the next module to be executed can
be either module b or module c. In other words, if module a finishes its
operation without any problem, module b turns on and does its calculation.
But if a certain condition occurs during module a operation, module c
should be executed and module a should stop its operation(or be turned
off). I'm looking for a way to make module a stop its operation in such a
case.
This should be very similar to 'goto' statment in C language. I used
'disable' and named-block in Verilog to implement this and succeeded
simulation. However, while trying to synthesize it, Xilinx ISE6.3i gave an
error message("Unsupported Disable Statement") and failed sythesizing it.
Anyone plese let me know:
-how to make a module turn off itself in the midle of its operation or
-how to implement 'goto' statement in C language using Verilog.
Thanks much in advance!