Skip to content

Commit

Permalink
Disabled sar test
Browse files Browse the repository at this point in the history
  • Loading branch information
wulffern committed May 29, 2023
1 parent fdfc475 commit b537472
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt-get -qq update && apt-get install -qq -y --no-install-recommends \
libxrender1 \
libfontconfig1 \
qt6-base-dev \
python3 python3-pip \
python3 python3-pip jq\
&& apt-get -qq clean

RUN python3 -m pip install matplotlib numpy click svgwrite pyyaml pandas tabulate wheel setuptools tikzplotlib
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ VERSION=0.1.5+
VERSION_DATE=${VERSION} built on $(shell date)
VERSION_HASH=${shell git describe --tags}

TESTS= sar routes sun_sar9b
TESTS= sar routes

#- Figure out which platform we're running on
ifeq ($(OS),Windows_NT)
Expand All @@ -39,6 +39,10 @@ OSBIN=darwin
GDS3D=GDS3D/mac/GDS3D.app/Contents/MacOS/GDS3D
OSID =
OSVER =

#- These test don't work cross platform. Might be a hash table difference between mac and linux
TESTS += sun_sar9b

endif
ifeq ($(UNAME_S),Linux)
OSNAME=Linux
Expand Down Expand Up @@ -150,4 +154,4 @@ cirun:
docker run --rm -it -v `pwd`:/lcic ${CONT} bash

test:
${foreach f, ${TESTS}, cd tests/${f}; make test; cd ../../;}
${foreach f, ${TESTS}, cd tests/${f}; make test || exit; cd ../../;}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Should you find issues, don't hesitate to add an issue on gitub.
# Changelog

## v0.1.5
* Added verticalMultiplyVector to patterntile to simplify analog transistor generation
* Route, RouteRing, Guard will be loaded as LayoutCell to fix view problem of cuts.
* Fixed issue rotateAngle in LayoutRotateCell. Seems like QJsonValue is no
longer automatically casted to QString.
Expand Down
2 changes: 1 addition & 1 deletion cic-core/src/cells/sar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace cIcCells{
//Get routing height
QList<Graph*> graphs = this->getNodeGraphs("CN<|D<|CP<");



int yc = y + msw*2;

Expand Down
20 changes: 5 additions & 15 deletions cic-core/src/core/patterntile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ namespace cIcCore {

y2 += verticalMultiplyVectorSum(ymax_)*(double)yspace_;

// int y2 = translateY(ymax_) + (float)heightoffset_*(float)yspace_;
//int y2 = ((float)ymax_ + (float)heightoffset_)*(float)yspace_;

//qDebug() << "Bounding pattern" << x1 << y1 << x2 << y2 << ymax_ << verticalMultiplyVector_.count();

Rect r;
Expand All @@ -83,7 +80,7 @@ namespace cIcCore {
}

double PatternTile::verticalMultiplyVectorSum(int y){
int sum = 0;
double sum = 0;
if(y >= 0 && verticalMultiplyVector_.count() >= y){
for(int i=0;i<y;i++){
sum += verticalMultiplyVector_[i];
Expand All @@ -95,9 +92,9 @@ namespace cIcCore {
}

int PatternTile::translateY(int y){
int yt = yoffset_*yspace_;
yt += verticalMultiplyVectorSum(y)*yspace_;
return yt;
double yt = yoffset_*yspace_;
yt += verticalMultiplyVectorSum(y)*(double)yspace_;
return (int)yt;
}

void PatternTile::copyColumn(QJsonObject obj){
Expand Down Expand Up @@ -730,10 +727,8 @@ namespace cIcCore {
}

}


}

QJsonValue h = rect[3];
if(h.isString() && h.toString() == "height"){
e->height = verticalMultiplyVectorSum(ymax_+1);
Expand All @@ -742,11 +737,6 @@ namespace cIcCore {
}
}






QJsonArray encl = ar[2].toArray();

foreach(QJsonValue enc, encl){
Expand Down

0 comments on commit b537472

Please sign in to comment.