M
mnentwig
Guest
Hi,
I'm getting some strange results from the simulator that I don't understan
(tried both iverilog and ISim).
The design tries to make a combinational assignment inside a module:
module gate (input [1:0] mux, input [17:0] a, output [17:0] b);
assign b = (mux == 1) ? a : 17'hx;
endmodule
What happens is that "a" never gets through to "b".
A similar line outside a module works.
With some time scale settings, it works also. The simulation is completel
algorithmic, no delays, device models or the like.
Does anybody have an idea, what is going on here? Is this a delta-cycl
problem, am I missing something fundamental here?
Apologies if the answer is obvious, but usually I I stick to the safe pat
of fully synchronous logic in Moore machines...
---------------------------------------
Posted through http://www.FPGARelated.com
I'm getting some strange results from the simulator that I don't understan
(tried both iverilog and ISim).
The design tries to make a combinational assignment inside a module:
module gate (input [1:0] mux, input [17:0] a, output [17:0] b);
assign b = (mux == 1) ? a : 17'hx;
endmodule
What happens is that "a" never gets through to "b".
A similar line outside a module works.
With some time scale settings, it works also. The simulation is completel
algorithmic, no delays, device models or the like.
Does anybody have an idea, what is going on here? Is this a delta-cycl
problem, am I missing something fundamental here?
Apologies if the answer is obvious, but usually I I stick to the safe pat
of fully synchronous logic in Moore machines...
---------------------------------------
Posted through http://www.FPGARelated.com