Skip to content

Commit

Permalink
[stdlib] Set mem msg field type_ to its correct width
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpan committed Nov 23, 2023
1 parent c1e2dfb commit 1e97cfd
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions pymtl3/stdlib/mem/MemMsg.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ def mk_mem_req_msg( o, a, d ):
@bitstruct
class MemReqMsg:

# Temporary Fix! Had to switch this back to 3-bit type field because
# the type field in the verilog memory message is only 3 bits. We
# should change the verilog memory message eventually. -cbatten

# type_ : Bits4

type_ : Bits3
type_ : Bits4
opaque : mk_bits( o )
addr : mk_bits( a )
len : mk_bits( clog2(d>>3) )
Expand All @@ -86,13 +80,7 @@ def mk_mem_resp_msg( o, d ):
@bitstruct
class MemRespMsg:

# Temporary Fix! Had to switch this back to 3-bit type field because
# the type field in the verilog memory message is only 3 bits. We
# should change the verilog memory message eventually. -cbatten

# type_ : Bits4

type_ : Bits3
type_ : Bits4
opaque : mk_bits( o )
test : Bits2
len : mk_bits( clog2(d>>3) )
Expand Down

0 comments on commit 1e97cfd

Please sign in to comment.