Skip to content

Commit 5379a77

Browse files
authored
Merge pull request #14 from karthisrinivasan/main
zero-bw bundled data channels
2 parents e259e13 + 2921b0c commit 5379a77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

std/channel.act

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ export defchan pull_rMx1of2 <: gen_pMx1of2<true,0> () { }
742742
template<pbool reset; pint V; pint M>
743743
defchan gen_Mbd <: chan(int<M>) (bool?! d[M]; bool?! r; bool!? a)
744744
{
745-
{ 0 <= V & std::ceil_log2(V) < M : "Initial token value out of range" };
745+
{ 0 = V | (0 < V & std::ceil_log2(V) < M) : "Initial token value out of range" };
746746

747747
spec {
748748
/* timing fork */
@@ -940,7 +940,7 @@ defchan bd_memaddr <: chan(int<M+2>) (bool?! d[M]; bool?! r, w, rw; bool!? a)
940940
template<pbool reset; pint V; pint M>
941941
defchan gen_pMbd <: chan(int<M>) (bool?! d[M]; bool!? r; bool?! a)
942942
{
943-
{ 0 <= V & std::ceil_log2(V) < M : "Initial token value out of range" };
943+
{ 0 = V | (0 < V & std::ceil_log2(V) < M) : "Initial token value out of range" };
944944

945945
spec {
946946
/* timing fork */
@@ -1012,7 +1012,7 @@ export defchan pull_rbd <: gen_pMbd<true,0> () { }
10121012
template<pbool reset; pint V; pint M>
10131013
defchan gen_ts_Mbd <: chan(int<M>) (bool?! d[M]; bool?! r; bool!? a)
10141014
{
1015-
{ 0 <= V & std::ceil_log2(V) < M : "Initial token value out of range" };
1015+
{ 0 = V | (0 < V & std::ceil_log2(V) < M) : "Initial token value out of range" };
10161016

10171017
spec {
10181018
/* timing fork */

0 commit comments

Comments
 (0)