Chisel3 compatibility fixes
This commit is contained in:
parent
1e7f656527
commit
0fe16ac1c0
@ -86,7 +86,7 @@ class HTIF(pcr_RESET: Int) extends Module with HTIFParameters {
|
|||||||
val rx_word_count = (rx_count >> log2Up(short_request_bits/w))
|
val rx_word_count = (rx_count >> log2Up(short_request_bits/w))
|
||||||
val rx_word_done = io.host.in.valid && rx_count(log2Up(short_request_bits/w)-1,0).andR
|
val rx_word_done = io.host.in.valid && rx_count(log2Up(short_request_bits/w)-1,0).andR
|
||||||
val packet_ram_depth = long_request_bits/short_request_bits-1
|
val packet_ram_depth = long_request_bits/short_request_bits-1
|
||||||
val packet_ram = Mem(Bits(width = short_request_bits), packet_ram_depth)
|
val packet_ram = Mem(packet_ram_depth, Bits(width = short_request_bits))
|
||||||
when (rx_word_done && io.host.in.ready) {
|
when (rx_word_done && io.host.in.ready) {
|
||||||
packet_ram(rx_word_count(log2Up(packet_ram_depth)-1,0) - UInt(1)) := rx_shifter_in
|
packet_ram(rx_word_count(log2Up(packet_ram_depth)-1,0) - UInt(1)) := rx_shifter_in
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user