Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge from main to cocotb #506

Merged
merged 126 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
7beff35
Apply automatic changes to Manifest and README.rst
marwaneltoukhy Jun 1, 2023
57456a2
Merge remote-tracking branch 'origin/caravan-mpw9'
jeffdi Jun 7, 2023
e865e51
Merge remote-tracking branch 'origin/main'
jeffdi Jun 7, 2023
1b93c22
Makefile add openframe target
jeffdi Jun 7, 2023
bf4325d
Makefile add openframe target
jeffdi Jun 7, 2023
ecad21b
Makefile add openframe target
jeffdi Jun 7, 2023
c8beae7
disable dist for fill gen
jeffdi Jun 7, 2023
28c9ef9
change .magicrc to use from pdk
jeffdi Jun 7, 2023
eb4edd3
change .magicrc to use from pdk
jeffdi Jun 7, 2023
da285b9
add user_id back
jeffdi Jun 8, 2023
475368a
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
d71763f
add user_id back
jeffdi Jun 8, 2023
e1df206
Merge remote-tracking branch 'origin/openframe_tapeout' into openfram…
jeffdi Jun 8, 2023
d265ffa
rename top to caravel
jeffdi Jun 8, 2023
a2fb172
change bbox for gen fill
jeffdi Jun 8, 2023
6f7ac1f
change bbox for gen fill
jeffdi Jun 8, 2023
83d06e2
change bbox for gen fill
jeffdi Jun 8, 2023
2852f5d
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
ec5a034
remove -keep for gen fill
jeffdi Jun 8, 2023
a8b2996
Merge remote-tracking branch 'origin/openframe_tapeout' into openfram…
jeffdi Jun 8, 2023
05a7fe0
add -keep
jeffdi Jun 8, 2023
361e51f
correct load issue with gen fill
jeffdi Jun 8, 2023
60f4b17
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
436066b
remove -keep
jeffdi Jun 9, 2023
efff594
Merge remote-tracking branch 'origin/openframe_tapeout' into openfram…
jeffdi Jun 9, 2023
1e6dc89
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
f3cd9e0
rename top to caravel
jeffdi Jun 8, 2023
6d06bd9
change bbox for gen fill
jeffdi Jun 8, 2023
f3250ea
change bbox for gen fill
jeffdi Jun 8, 2023
485ecd0
change bbox for gen fill
jeffdi Jun 8, 2023
8b7f4a4
remove -keep for gen fill
jeffdi Jun 8, 2023
63c2291
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
6a67c25
add -keep
jeffdi Jun 8, 2023
547e09d
correct load issue with gen fill
jeffdi Jun 8, 2023
7a66e09
remove -keep
jeffdi Jun 9, 2023
34cdf34
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
7c2e450
Merge remote-tracking branch 'origin/openframe_tapeout' into openfram…
jeffdi Jun 9, 2023
9b2c47f
Merge remote-tracking branch 'origin/main'
jeffdi Jun 9, 2023
f720289
Makefile add openframe target
jeffdi Jun 7, 2023
d2e5396
Makefile add openframe target
jeffdi Jun 7, 2023
8fcb1bc
Makefile add openframe target
jeffdi Jun 7, 2023
91317e6
disable dist for fill gen
jeffdi Jun 7, 2023
950d74d
change .magicrc to use from pdk
jeffdi Jun 7, 2023
b022bdf
change .magicrc to use from pdk
jeffdi Jun 7, 2023
e64f948
add user_id back
jeffdi Jun 8, 2023
8c9b8c2
add user_id back
jeffdi Jun 8, 2023
45f92fd
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
43d3652
rename top to caravel
jeffdi Jun 8, 2023
52b946a
change bbox for gen fill
jeffdi Jun 8, 2023
f6acdba
change bbox for gen fill
jeffdi Jun 8, 2023
c95ac23
change bbox for gen fill
jeffdi Jun 8, 2023
195a607
remove -keep for gen fill
jeffdi Jun 8, 2023
774d22c
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
3101831
add -keep
jeffdi Jun 8, 2023
a98115f
correct load issue with gen fill
jeffdi Jun 8, 2023
8678cd0
remove -keep
jeffdi Jun 9, 2023
441c0b7
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
5dad909
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
52ada8c
change bbox for gen fill
jeffdi Jun 8, 2023
6b41297
remove -keep for gen fill
jeffdi Jun 8, 2023
b971154
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
0d8fa51
add -keep
jeffdi Jun 8, 2023
1d61ee6
remove -keep
jeffdi Jun 9, 2023
4543161
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
f2e4bc5
Merge remote-tracking branch 'origin/openframe_tapeout' into openfram…
jeffdi Jun 9, 2023
ec9242f
Apply automatic changes to Manifest and README.rst
jeffdi Jun 9, 2023
58a568c
remove duplicate declaration from caravan_core.v
M0stafaRady Aug 23, 2023
acda91a
Apply automatic changes to Manifest and README.rst
M0stafaRady Aug 23, 2023
a1eb03b
Update tag to mpw-9e
jeffdi Sep 6, 2023
e98df2f
Merge remote-tracking branch 'origin/main'
jeffdi Sep 6, 2023
0907f7a
Merge pull request #493 from efabless/jeffdi-patch-1
jeffdi Sep 6, 2023
ae41074
Merge remote-tracking branch 'origin/main'
jeffdi Sep 11, 2023
11533ad
Makefile add openframe target
jeffdi Jun 7, 2023
ae229a5
Makefile add openframe target
jeffdi Jun 7, 2023
6de3545
Makefile add openframe target
jeffdi Jun 7, 2023
1e07b85
disable dist for fill gen
jeffdi Jun 7, 2023
e52732d
change .magicrc to use from pdk
jeffdi Jun 7, 2023
556277b
change .magicrc to use from pdk
jeffdi Jun 7, 2023
b08bb5a
add user_id back
jeffdi Jun 8, 2023
0d5c519
add user_id back
jeffdi Jun 8, 2023
b21a7a2
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
4c6cc4f
rename top to caravel
jeffdi Jun 8, 2023
9c8611a
change bbox for gen fill
jeffdi Jun 8, 2023
b5faa21
change bbox for gen fill
jeffdi Jun 8, 2023
d335ed5
change bbox for gen fill
jeffdi Jun 8, 2023
f92ef03
remove -keep for gen fill
jeffdi Jun 8, 2023
2d0183c
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
4b2d7af
add -keep
jeffdi Jun 8, 2023
0f9e930
correct load issue with gen fill
jeffdi Jun 8, 2023
68e2b87
remove -keep
jeffdi Jun 9, 2023
a8c0cf9
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
a14a4fa
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
40f5d94
change bbox for gen fill
jeffdi Jun 8, 2023
42d1860
remove -keep for gen fill
jeffdi Jun 8, 2023
238982d
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
ed2b6ad
add -keep
jeffdi Jun 8, 2023
0e65bfa
remove -keep
jeffdi Jun 9, 2023
1562d1a
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
c95834d
Makefile add openframe target
jeffdi Jun 7, 2023
39846c8
disable dist for fill gen
jeffdi Jun 7, 2023
921e4e2
change .magicrc to use from pdk
jeffdi Jun 7, 2023
df3eca2
add user_id back
jeffdi Jun 8, 2023
4691b2c
change bbox for gen fill
jeffdi Jun 8, 2023
3985e19
change bbox for gen fill
jeffdi Jun 8, 2023
144e9b2
remove -keep for gen fill
jeffdi Jun 8, 2023
b709ac0
add -keep
jeffdi Jun 8, 2023
40b141b
remove -keep
jeffdi Jun 9, 2023
d2c500f
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
8c0f2f5
Apply automatic changes to Manifest and README.rst
jeffdi Jun 8, 2023
e2f41e2
rename top to caravel
jeffdi Jun 8, 2023
2103b59
Apply automatic changes to Manifest and README.rst
jeffdi Jun 9, 2023
c55d4f6
update openframe make target
jeffdi Sep 11, 2023
a72f454
Merge remote-tracking branch 'origin/openframe_tapeout' into openfram…
jeffdi Sep 11, 2023
8bdf487
Apply automatic changes to Manifest and README.rst
jeffdi Sep 11, 2023
78a5f2a
correct typos
jeffdi Sep 11, 2023
7f0072f
Merge remote-tracking branch 'origin/openframe_tapeout' into openfram…
jeffdi Sep 11, 2023
909998b
correct typos
jeffdi Sep 11, 2023
19ce6de
remove hard-coded sky130A in rcfile path from scripts
jeffdi Sep 12, 2023
a4ff88b
Apply automatic changes to Manifest and README.rst
jeffdi Sep 12, 2023
7f820d8
Merge pull request #495 from efabless/openframe_tapeout
jeffdi Sep 12, 2023
cee0f31
add gate-level netlist for `caravel_openframe`
mo-hosni Sep 18, 2023
f5199a7
add a gate-level for `chip_io_openframe`
mo-hosni Sep 24, 2023
dec3ffc
Merge pull request #488 from efabless/duplicate_declaration
jeffdi Sep 24, 2023
9a48f4c
Swapped the positions of gpio_dm0[38] and gpio_dm1[38], which
RTimothyEdwards Sep 25, 2023
31aa30b
Merge pull request #501 from efabless/fix_openframe_wrapper_pins
jeffdi Sep 25, 2023
978fa08
Merge pull request #502 from efabless/openframe-lvs
jeffdi Sep 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ LARGE_FILES_GZ_SPLIT += $(addsuffix .00.split, $(ARCHIVES))

MCW_ROOT?=$(PWD)/mgmt_core_wrapper
MCW ?=LITEX_VEXRISCV
MPW_TAG ?= mpw-9c
MPW_TAG ?= mpw-9e

PYTHON_BIN ?= python3

Expand Down Expand Up @@ -200,6 +200,47 @@ __truck:
@cd $(CARAVEL_ROOT)/mag && PDKPATH=${PDK_ROOT}/$(PDK) MAGTYPE=mag magic -noc -dnull -rcfile ./.magicrc $(UPRJ_ROOT)/mag/mag2gds_caravan.tcl 2>&1 | tee $(UPRJ_ROOT)/signoff/build/make_truck.out
### @rm $(UPRJ_ROOT)/mag/mag2gds_caravan.tcl

.PHONY: openframe
openframe: check-env uncompress uncompress-caravel
ifeq ($(FOREGROUND),1)
@echo "Running make openframe in the foreground..."
$(MAKE) -f $(CARAVEL_ROOT)/Makefile __openframe
@echo "Make openframe completed." 2>&1 | tee -a ./signoff/build/make_openframe.out
else
@echo "Running make openframe in the background..."
nohup $(MAKE) -f $(CARAVEL_ROOT)/Makefile __openframe >/dev/null 2>&1 &
tail -f signoff/build/make_openframe.out
@echo "Make openframe completed." 2>&1 | tee -a ./signoff/build/make_openframe.out
endif

__openframe:
@echo "###############################################"
@echo "Generating Caravel GDS (sources are in the 'gds' directory)"
@sleep 1
#### Runs from the CARAVEL_ROOT mag directory
@echo "\
drc off; \
crashbackups stop; \
addpath hexdigits; \
addpath $(UPRJ_ROOT)/mag; \
load openframe_project_wrapper; \
property LEFview true; \
property GDS_FILE $(UPRJ_ROOT)/gds/openframe_project_wrapper.gds; \
property GDS_START 0; \
load $(UPRJ_ROOT)/mag/user_id_programming; \
load $(UPRJ_ROOT)/mag/user_id_textblock; \
load $(CARAVEL_ROOT)/maglef/simple_por; \
load caravel_openframe -dereference; \
select top cell; \
expand; \
cif *hier write disable; \
cif *array write disable; \
gds write $(UPRJ_ROOT)/gds/caravel_openframe.gds; \
quit -noprompt;" > $(UPRJ_ROOT)/mag/mag2gds_caravel_openframe.tcl
### Runs from CARAVEL_ROOT
@mkdir -p ./signoff/build
@cd $(CARAVEL_ROOT)/mag && PDKPATH=${PDK_ROOT}/$(PDK) MAGTYPE=mag magic -noc -dnull -rcfile ${PDK_ROOT}/$(PDK)/libs.tech/magic/$(PDK).magicrc $(UPRJ_ROOT)/mag/mag2gds_caravel_openframe.tcl 2>&1 | tee $(UPRJ_ROOT)/signoff/build/make_openframe.out

.PHONY: clean
clean:
cd $(CARAVEL_ROOT)/verilog/dv/caravel/mgmt_soc/ && \
Expand Down
4 changes: 2 additions & 2 deletions mag/openframe_project_wrapper.mag
Original file line number Diff line number Diff line change
Expand Up @@ -3408,9 +3408,9 @@ flabel metal2 145190 -424 145246 56 0 FreeSans 400 270 0 0 gpio_in[38]
port 691 nsew
flabel metal2 147030 -424 147086 56 0 FreeSans 400 270 0 0 gpio_slow_sel[38]
port 339 nsew
flabel metal2 148870 -424 148926 56 0 FreeSans 400 270 0 0 gpio_dm0[38]
flabel metal2 148870 -424 148926 56 0 FreeSans 400 270 0 0 gpio_dm1[38]
port 559 nsew
flabel metal2 150710 -424 150766 56 0 FreeSans 400 270 0 0 gpio_dm1[38]
flabel metal2 150710 -424 150766 56 0 FreeSans 400 270 0 0 gpio_dm0[38]
port 603 nsew
flabel metal2 151354 -424 151410 56 0 FreeSans 400 270 0 0 gpio_analog_pol[38]
port 515 nsew
Expand Down
6 changes: 3 additions & 3 deletions manifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
cc82a78753f5f5d0a1519bd81adbcff8a4296d91 verilog/rtl/__user_project_wrapper.v
3c8c04f53b2848dc46132cda82c614e06e56571b verilog/rtl/buff_flash_clkrst.v
14064261ec18d633a5d72b45b2347c388f2f446f verilog/rtl/caravan.v
502219ed86a5c1707bd0cf636f3b61de78f159d8 verilog/rtl/caravan_core.v
864365067a3fbb8fe3354d94d94c7b8469999850 verilog/rtl/caravan_core.v
e68fd2e085679d0f61040115fdd1d50651705d3a verilog/rtl/caravan_logo.v
d265ea6bf861e3f5c1b1b984ae057dbaed995008 verilog/rtl/caravan_motto.v
baf7cf0e8a8a712621aed75aff98198a663db43b verilog/rtl/caravan_netlists.v
Expand Down Expand Up @@ -55,5 +55,5 @@ b9d6114a5067a04dd59cdd46fb988591c16743ce verilog/rtl/spare_logic_block.v
036dc8e9066082b2e133dc7b72fd3ad5a52f254b verilog/rtl/toplevel_cocotb.v
8f0bec01c914efe790a09ffe62bbfe0781069e35 verilog/rtl/xres_buf.v
256190717faa72005cf7656d8443c4c0693b3f78 scripts/set_user_id.py
98168b1fb6f80b196f9a05e725ec6ad99bc57ac6 scripts/generate_fill.py
9e31b1bbbb03024d02d54f9da8d42b3837abc5e5 scripts/compositor.py
731116709a44d13225170acc83cd34ff9e00fa39 scripts/generate_fill.py
dff8adfb05bedf96f86e16a18ce3cd5818d6fb78 scripts/compositor.py
7 changes: 4 additions & 3 deletions scripts/compositor.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@ def usage():
keepmode = True

magpath = mag_dir_path
rcfile = magpath + '/.magicrc'
# pdk_root = os.getenv("PDK_ROOT")
# rcfile = pdk_root + '/sky130A/libs.tech/magic/sky130A.magicrc'
# rcfile = magpath + '/.magicrc'
pdk_root = os.getenv("PDK_ROOT")
pdk = os.getenv("PDK")
rcfile = pdk_root + '/' + pdk + '/libs.tech/magic/' + pdk + '.magicrc'

gdspath = gds_dir_path

Expand Down
11 changes: 7 additions & 4 deletions scripts/generate_fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ def makegds(file):
distmode = True

magpath = user_project_path + '/mag'
rcfile = magpath + '/.magicrc'
# pdk_root = os.getenv("PDK_ROOT")
# rcfile = pdk_root + '/sky130A/libs.tech/magic/sky130A.magicrc'
# rcfile = magpath + '/.magicrc'
pdk_root = os.getenv("PDK_ROOT")
pdk = os.getenv("PDK")
rcfile = pdk_root + '/' + pdk + '/libs.tech/magic/' + pdk + '.magicrc'

if not os.path.isfile(rcfile):
rcfile = None
Expand Down Expand Up @@ -187,12 +188,14 @@ def makegds(file):
print('gds readonly true', file=ofile)
print('gds rescale false', file=ofile)
print('gds read ../gds/' + project, file=ofile)
print('load ' + project, file=ofile)
print('select top cell', file=ofile)
print('expand', file=ofile)
if not distmode:
print('cif ostyle wafflefill(tiled)', file=ofile)
print('', file=ofile)
print('set fullbox [box values]', file=ofile)
# print('set fullbox [box values]', file=ofile)
print('set fullbox { 0 0 717600 1037600 }', file=ofile)
print('set xmax [lindex $fullbox 2]', file=ofile)
print('set xmin [lindex $fullbox 0]', file=ofile)
print('set fullwidth [expr {$xmax - $xmin}]', file=ofile)
Expand Down
Loading
Loading