Skip to content

Techmap blackbox port direction #5067

Answered by KrystalDelusion
ben-j-c asked this question in Q&A
Discussion options

You must be logged in to vote

The module_not_derived attribute is because the v2f_mul module is a blackbox. which I think is also related to the missing port directions (sidenote that the show output connects them all on the left not because they're all inputs, but just because that's the default side when the direction isn't known).

The unnamed ports is because _TECHMAP_REPLACE_ doesn't work with positional arguments.

You also typically want to provide the cell model and the techmap rules in separate files, i.e.
v2f_model.v

module v2f_mul (A,B,Y);
	parameter A_WIDTH = 32; parameter B_WIDTH = 32; parameter Y_WIDTH = 32;
	parameter A_SIGNED = 0;
	parameter B_SIGNED = 0;
	input [A_WIDTH-1:0] A;
	input [B_WIDTH-1:0] B;
	o…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ben-j-c
Comment options

Answer selected by ben-j-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants