Skip to content

hierarchical flow w/ place_macro() #893

Discussion options

You must be logged in to vote

Hi, good question! The full ZeroSoC build script does something like this, but there's a lot going on there. Here's a minimal example that should help demonstrate the key parts:

asic_core.v - the child design

module asic_core();

    // Insert implementation here

endmodule

asic_top.v - the larger design that integrates asic_core

module asic_top();

    asic_core myinstance ();

    // Additional implementation here

endmodule

asic_core.bb.v - a blackboxed asic_core.v (you'll see the reason for this shortly)

(* blackbox *)
module asic_core(
    // instantiate same IO as in asic_core.v
);
    // no implementation, this is a blackbox!
endmodule

build_core.py - build script for asic_core

import

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@AllenDBoston
Comment options

@nmoroze
Comment options

@AllenDBoston
Comment options

@nmoroze
Comment options

Answer selected by aolofsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants