Skip to content

Commit

Permalink
Add inputs to glb_tile subgraph for rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarsello committed Jul 26, 2023
1 parent 489c4f5 commit 4511ede
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions mflowgen/common/rtl/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ name: rtl
commands:
- bash gen_rtl.sh

inputs:
- design.v
- header

outputs:
- design.v
- header

parameters:
array_width: 4
Expand Down
4 changes: 2 additions & 2 deletions mflowgen/common/rtl/gen_rtl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ fi
echo '--- gen_rtl BEGIN' `date +%H:%M`

# Hierarchical flows can accept RTL as an input from parent graph
if [ -f ../inputs/design.v ]; then
if [ -f inputs/design.v ]; then
echo "Using RTL from parent graph"
mkdir -p outputs
(cd outputs; ln -s ../../inputs/design.v)
if [ -d ../inputs/header ]; then
if [ -d inputs/header ]; then
echo "Using header from parent graph"
(cd outputs; ln -s ../../inputs/header)
fi
Expand Down
11 changes: 8 additions & 3 deletions mflowgen/glb_tile/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,13 @@ def construct():
'core_height' : 0
}, allow_new=True )

# Add graph outputs so this can be used in hierarchical flows
# Add graph inputs and outputs so this can be used in hierarchical flows

# Inputs
g.add_input( rtl, 'design.v', 'design.v' )
g.add_input( rtl, 'header', 'header' )

# Outputs
g.add_output( genlib, 'design.lib', 'glb_tile_tt.lib' )
g.add_output( lib2db, 'design.db', 'glb_tile_tt.db' )
g.add_output( signoff, 'design.lef', 'glb_tile.lef' )
Expand Down Expand Up @@ -181,8 +187,7 @@ def construct():
if which_soc == 'onyx':
cts.extend_inputs( custom_cts.all_outputs() )

# Add header files to outputs
rtl.extend_outputs( ['header'] )
# Header files required for glb rtl output
rtl.extend_postconditions( ["assert File( 'outputs/header' ) "] )

#-----------------------------------------------------------------------
Expand Down

0 comments on commit 4511ede

Please sign in to comment.