Add missing file; revise clean rules

This commit is contained in:
bocchino 2019-11-19 13:40:00 -08:00
parent 54a94b7d37
commit 4cc49c7490
5 changed files with 73 additions and 1 deletions

8
clean.do Normal file
View File

@ -0,0 +1,8 @@
# ----------------------------------------------------------------------
# clean.do
# ----------------------------------------------------------------------
. ./defs.sh
find . -mindepth 2 -maxdepth 2 -name clean.do | sed 's/\.do$//' | xargs redo
rm_tmp

View File

@ -22,7 +22,7 @@ doall()
echoerr 'usage: doall command regex'
return 1
fi
for file in `find . -name "$2"`; do
for file in `find . -mindepth 1 -maxdepth 1 -name "$2"`; do
$1 $file
done
}

8
docs/clean.do Normal file
View File

@ -0,0 +1,8 @@
# ----------------------------------------------------------------------
# clean.do
# ----------------------------------------------------------------------
. ./defs.sh
find . -mindepth 2 -maxdepth 2 -name clean.do | sed 's/\.do$//' | xargs redo
rm_tmp

6
docs/defs.sh Normal file
View File

@ -0,0 +1,6 @@
# ----------------------------------------------------------------------
# defs.sh
# ----------------------------------------------------------------------
export LEVEL=..
. $LEVEL/defs.sh

View File

@ -0,0 +1,50 @@
@ Port P
port P(x : U32)
@ Component C1
active component C1 {
@ Constant n
constant n = 5
@ Constant p
constant p = 10
@ Port p1
async input port p1 : P priority p
@ Port p2
guarded input port p2 : P
@ Port p3
internal input port p3 : P
@ Port p4
output port p4 : [ n ] P
@ Port p5
sync input port p5 : P
}
@ Component C2
passive component C2 {
@ Port p1
command port p1
@ Port p2
command reg port p2
@ Port p3
command resp port p3
@ Port p4
event port p4
@ Port p5
param get port p5
@ Port p6
param set port p6
@ Port p7
telemetry port p7
@ Port p8
time port p8
}
@ Component C3
queued component C3 {
@ Port p1
async input port p1 : P assert
@ Port p2
async input port P2 : P block
@ Port p3
async input port P3 : P drop
}