summaryrefslogtreecommitdiffhomepage
path: root/src/controller.v
diff options
context:
space:
mode:
authorPrivate Island Networks Inc <opensource@privateisland.tech>2026-11-24 15:50:06 -0500
committerPrivate Island Networks Inc <opensource@privateisland.tech>2026-11-24 15:50:06 -0500
commit0bc7b0702ca2d99b853b5dcb3f0524d2cad78cd5 (patch)
tree2927b6078965f8b9876a7e0795edb244a23b0fe6 /src/controller.v
parent7dccad3e21126fdbb3953f65082bbb185c39011f (diff)
pkt_gen: add initial implementationHEADmaster
Diffstat (limited to 'src/controller.v')
-rw-r--r--src/controller.v9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/controller.v b/src/controller.v
index e30d461..96c4f20 100644
--- a/src/controller.v
+++ b/src/controller.v
@@ -48,6 +48,7 @@ module controller #(parameter MDIO_ADDR_SZ = 7, parameter NUM_PHYS=3)
output reg pkt_filter_sel,
output reg mac_sel,
output reg mle_sel,
+ output reg pkt_gen_sel,
output reg hf_ptrs_sel,
output reg hf_tx_sel,
output reg hf_rx_sel,
@@ -486,7 +487,7 @@ module controller #(parameter MDIO_ADDR_SZ = 7, parameter NUM_PHYS=3)
mem_cmd <= 1'b0;
else if (cont_state == CONT_ST_IDLE && !rx_msg_captured)
mem_cmd <= 1'b0;
- else if (rx_msg_captured && msg_addr[15:8] >= MSG_MAC_ADDR[15:8] && msg_addr[15:8] < MSG_MLE_ADDR[15:8])
+ else if (rx_msg_captured && msg_addr[15:8] >= MSG_MAC_ADDR[15:8] && msg_addr[15:8] < MSG_INVALID_ADDR[15:8])
mem_cmd <= 1'b1;
// Primary Memory Controller Actions
@@ -498,6 +499,7 @@ module controller #(parameter MDIO_ADDR_SZ = 7, parameter NUM_PHYS=3)
mac_sel <= 1'b0;
mle_sel <= 1'b0;
pkt_filter_sel <= 1'b0;
+ pkt_gen_sel <= 1'b0;
hf_ptrs_sel <= 1'b0;
hf_tx_sel <= 1'b0;
hf_rx_sel <= 1'b0;
@@ -534,6 +536,7 @@ module controller #(parameter MDIO_ADDR_SZ = 7, parameter NUM_PHYS=3)
MSG_MAC_ADDR[15:8]: mac_sel <= 1'b1;
MSG_PKT_FILTER_ADDR[15:8]: pkt_filter_sel <= 1'b1;
MSG_MLE_ADDR[15:8]: mle_sel <= 1'b1;
+ MSG_PKT_GEN_ADDR[15:8]: pkt_gen_sel <= 1'b1;
endcase
end
end
@@ -544,6 +547,7 @@ module controller #(parameter MDIO_ADDR_SZ = 7, parameter NUM_PHYS=3)
mac_sel <= 1'b0;
mle_sel <= 1'b0;
pkt_filter_sel <= 1'b0;
+ pkt_gen_sel <= 1'b0;
end
else if (mem_state == MEM_ST_REPLY_START && tx_fifo_empty) begin // write byte cnt
hf_ptrs_sel <= 1'b1;
@@ -606,6 +610,7 @@ module controller #(parameter MDIO_ADDR_SZ = 7, parameter NUM_PHYS=3)
hf_ptrs_sel <= 1'b0;
hf_tx_sel <= 1'b0;
hf_rx_sel <= 1'b0;
+ pkt_gen_sel <= 1'b0;
end
// rx_cnt
@@ -703,7 +708,7 @@ module controller #(parameter MDIO_ADDR_SZ = 7, parameter NUM_PHYS=3)
if (!rstn) begin
mac_addr <= 2'd0;
mdio_mux_sel <= 2'b00;
- pkt_filter_addr <= 16'd0;
+ pkt_filter_addr <= 16'h2001; // default is pkt_filter_21
end
else if (rx_msg_captured && !msg_error && msg_type == MSG_TYPE_WRITE) begin
if (msg_addr==MAC_ADDR)



Join the Betsy Beta