data/full_repos/permissive/515704782/bcd_ex3_nand.v
1: b"%Error: data/full_repos/permissive/515704782/bcd_ex3_nand.v:28: Cannot find file containing module: 'jk_ff'\njk_ff j1(j,k,clk,rst,q[0]);\n^~~~~\n        ... Looked in:\n             data/full_repos/permissive/515704782,data/full_repos/permissive/515704782/jk_ff\n             data/full_repos/permissive/515704782,data/full_repos/permissive/515704782/jk_ff.v\n             data/full_repos/permissive/515704782,data/full_repos/permissive/515704782/jk_ff.sv\n             jk_ff\n             jk_ff.v\n             jk_ff.sv\n             obj_dir/jk_ff\n             obj_dir/jk_ff.v\n             obj_dir/jk_ff.sv\n%Error: data/full_repos/permissive/515704782/bcd_ex3_nand.v:29: Cannot find file containing module: 'jk_ff'\njk_ff j2(j,k,q[0],rst,q[1]);\n^~~~~\n%Error: data/full_repos/permissive/515704782/bcd_ex3_nand.v:30: Cannot find file containing module: 'jk_ff'\njk_ff j3(j,k,q[1],rst,q[2]);\n^~~~~\n%Error: data/full_repos/permissive/515704782/bcd_ex3_nand.v:31: Cannot find file containing module: 'jk_ff'\njk_ff j4(j,k,q[2],rst,q[3]);\n^~~~~\n%Error: Exiting due to 4 error(s)\n"
module bcd_ex3_nand(input clk,output wire [3:0] q, output wire w,x,y,z );
wire rst,j,k;
assign j=1;
assign k=1;
nand #(0.001) n0(rst,q[3],q[1]);
jk_ff j1(j,k,clk,rst,q[0]);
jk_ff j2(j,k,q[0],rst,q[1]);
jk_ff j3(j,k,q[1],rst,q[2]);
jk_ff j4(j,k,q[2],rst,q[3]);

wire ah,bh,ch,dh;
wire x1,x2,x3,x4,x5,x6,x7,x8,x9;
not n1(ah,q[3]);
not n2(bh,q[2]);
not n3(ch,q[1]);
not n4(dh,q[0]);

nand(x1,q[2],q[0]);
nand(x2,q[3],q[0]);
nand(x3,q[3],bh);
nand(x4,q[2],q[1]);

nand(w,x1,x2,x3,x4);

nand(x5,q[2],ch,dh);
nand(x6,bh,q[0]);
nand(x7,bh,q[1]);

nand(x,x5,x6,x7);

nand(x8,ch,dh);
nand(x9,q[1],q[0]);

nand(y,x8,x9);

assign z=dh;

endmodule
module bcd_ex3_nand(input clk,output wire [3:0] q, output wire w,x,y,z );

wire rst,j,k;
assign j=1;
assign k=1;
nand #(0.001) n0(rst,q[3],q[1]);
jk_ff j1(j,k,clk,rst,q[0]);
jk_ff j2(j,k,q[0],rst,q[1]);
jk_ff j3(j,k,q[1],rst,q[2]);
jk_ff j4(j,k,q[2],rst,q[3]);

wire ah,bh,ch,dh;
wire x1,x2,x3,x4,x5,x6,x7,x8,x9;
not n1(ah,q[3]);
not n2(bh,q[2]);
not n3(ch,q[1]);
not n4(dh,q[0]);

nand(x1,q[2],q[0]);
nand(x2,q[3],q[0]);
nand(x3,q[3],bh);
nand(x4,q[2],q[1]);

nand(w,x1,x2,x3,x4);

nand(x5,q[2],ch,dh);
nand(x6,bh,q[0]);
nand(x7,bh,q[1]);

nand(x,x5,x6,x7);

nand(x8,ch,dh);
nand(x9,q[1],q[0]);

nand(y,x8,x9);

assign z=dh;

endmodule