Krzysztof Herman
09/27/2024, 12:43 PMd_cosim block which is a simple decoder with registered output. The verilog module was evaluated using iverilog and verilator test benches and works as expected. Unfortunately I can not reproduce the same behavior during the simulation using ngspice. The module does not follow the truth table defined in the decoder. The question is how can I debug it using ngspice ?Krzysztof Herman
09/27/2024, 12:56 PMmodule decoder(
input clk,
input rst,
input [3:0] ctrl,
output [7:0] dout_p,
output [7:0] dout_n
);
I found a difference in module behavior (ngspice) when I change the definition to
module decoder(
input clk,
input rst,
input ctrl_1,
input ctrl_2,
input ctrl_3,
input ctrl_4,
output [7:0] dout_p,
output [7:0] dout_n
);
however still it is not what is to be correct.
The spice level code which defines the module is the following:
adut [ net8 net22 net9 net10 net12 net13 ] [ net1 net2 net3 net11 net4 net5 net6 net7 net15 net14 net16 net17 net21 net18 net19 net20 ] null dut
.model dut d_cosim simulation=./decoder.so
where the respective net names correspond to to the inputs and outputs of the module ie. net8 -> clk, net22->rstHolger Vogt
09/28/2024, 10:04 PMHolger Vogt
10/01/2024, 2:51 PMLinen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by