data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v
1: b"%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:60: Cannot find file containing module: 'regchain'\n regchain #(1, 1) resetn_hp(CLK, RESETn, resetn);\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/150152921/apps/sha1/step1/rtl,data/full_repos/permissive/150152921/regchain\n             data/full_repos/permissive/150152921/apps/sha1/step1/rtl,data/full_repos/permissive/150152921/regchain.v\n             data/full_repos/permissive/150152921/apps/sha1/step1/rtl,data/full_repos/permissive/150152921/regchain.sv\n             regchain\n             regchain.v\n             regchain.sv\n             obj_dir/regchain\n             obj_dir/regchain.v\n             obj_dir/regchain.sv\n%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:61: Cannot find file containing module: 'regchain'\n regchain #(1, 1) init_hp(CLK, INIT, init);\n ^~~~~~~~\n%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:62: Cannot find file containing module: 'regchain'\n regchain #(1, 1) next_hp(CLK, NEXT, next);\n ^~~~~~~~\n%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:63: Cannot find file containing module: 'regchain'\n regchain #(1, 512) block_hp(CLK, BLOCK, block);\n ^~~~~~~~\n%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:65: Cannot find file containing module: 'sha1_core'\n sha1_core core\n ^~~~~~~~~\n%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:77: Cannot find file containing module: 'regchain'\n regchain #(0, 1) ready_hp(CLK, ready, READY);\n ^~~~~~~~\n%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:78: Cannot find file containing module: 'regchain'\n regchain #(0, 1) digest_valid_hp(CLK, digest_valid, DIGEST_VALID);\n ^~~~~~~~\n%Error: data/full_repos/permissive/150152921/apps/sha1/step1/rtl/sha1_top.v:79: Cannot find file containing module: 'regchain'\n regchain #(0, 160) digest_hp(CLK, digest, DIGEST);\n ^~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module top
(
	input		CLK,
	input		RESETn,
	input		INIT,
	input		NEXT,
	input	[511:0]	BLOCK,
	output		READY,
	output	[159:0]	DIGEST,
	output		DIGEST_VALID
);

	wire		resetn, init, next, ready, digest_valid;
	wire	[511:0]	block;
	wire	[159:0]	digest;

	regchain #(`NUM_FRONT, 1) resetn_hp(CLK, RESETn, resetn);
	regchain #(`NUM_FRONT, 1) init_hp(CLK, INIT, init);
	regchain #(`NUM_FRONT, 1) next_hp(CLK, NEXT, next);
	regchain #(`NUM_FRONT, 512) block_hp(CLK, BLOCK, block);

	sha1_core core
	(
		.clk(CLK),
		.reset_n(resetn),
		.init(init),
		.next(next),
		.block(block),
		.ready(ready),
		.digest(digest),
		.digest_valid(digest_valid)
	);

	regchain #(`NUM_BACK, 1) ready_hp(CLK, ready, READY);
	regchain #(`NUM_BACK, 1) digest_valid_hp(CLK, digest_valid, DIGEST_VALID);
	regchain #(`NUM_BACK, 160) digest_hp(CLK, digest, DIGEST);

endmodule
module top
(
	input		CLK,
	input		RESETn,
	input		INIT,
	input		NEXT,
	input	[511:0]	BLOCK,
	output		READY,
	output	[159:0]	DIGEST,
	output		DIGEST_VALID
);


	wire		resetn, init, next, ready, digest_valid;
	wire	[511:0]	block;
	wire	[159:0]	digest;

	regchain #(`NUM_FRONT, 1) resetn_hp(CLK, RESETn, resetn);
	regchain #(`NUM_FRONT, 1) init_hp(CLK, INIT, init);
	regchain #(`NUM_FRONT, 1) next_hp(CLK, NEXT, next);
	regchain #(`NUM_FRONT, 512) block_hp(CLK, BLOCK, block);

	sha1_core core
	(
		.clk(CLK),
		.reset_n(resetn),
		.init(init),
		.next(next),
		.block(block),
		.ready(ready),
		.digest(digest),
		.digest_valid(digest_valid)
	);

	regchain #(`NUM_BACK, 1) ready_hp(CLK, ready, READY);
	regchain #(`NUM_BACK, 1) digest_valid_hp(CLK, digest_valid, DIGEST_VALID);
	regchain #(`NUM_BACK, 160) digest_hp(CLK, digest, DIGEST);

endmodule