|
|
@@ -15,20 +15,20 @@ module SmcDataMux
|
|
|
// parameter Fifo5WriteLsbAddr = 12'h1e0+12'h24,
|
|
|
// parameter Fifo6WriteMsbAddr = 12'h230+12'h26
|
|
|
|
|
|
- parameter Fifo0WriteLsbAddr = 12'h0+12'h0,
|
|
|
- parameter Fifo0WriteMsbAddr = 12'h0+12'h2,
|
|
|
- parameter Fifo1WriteLsbAddr = 12'h0+12'h4,
|
|
|
- parameter Fifo1WriteMsbAddr = 12'h0+12'h6,
|
|
|
- parameter Fifo2WriteLsbAddr = 12'h0+12'h8,
|
|
|
- parameter Fifo2WriteMsbAddr = 12'h00+12'ha,
|
|
|
- parameter Fifo3WriteLsbAddr = 12'h0+12'hc,
|
|
|
- parameter Fifo3WriteMsbAddr = 12'h0+12'he,
|
|
|
- parameter Fifo4WriteLsbAddr = 12'h0+12'h10,
|
|
|
- parameter Fifo4WriteMsbAddr = 12'h190+12'h9,
|
|
|
- parameter Fifo5WriteLsbAddr = 12'h1e0+12'h10,
|
|
|
- parameter Fifo5WriteMsbAddr = 12'h1e0+12'h11,
|
|
|
- parameter Fifo6WriteLsbAddr = 12'h230+12'h12,
|
|
|
- parameter Fifo6WriteMsbAddr = 12'h230+12'h13
|
|
|
+ parameter Fifo0WriteLsbAddr = 12'h0+12'h24,
|
|
|
+ parameter Fifo0WriteMsbAddr = 12'h0+12'h26,
|
|
|
+ parameter Fifo1WriteLsbAddr = 12'h50+12'h24,
|
|
|
+ parameter Fifo1WriteMsbAddr = 12'h50+12'h26,
|
|
|
+ parameter Fifo2WriteLsbAddr = 12'hf0+12'h24,
|
|
|
+ parameter Fifo2WriteMsbAddr = 12'hf0+12'h26,
|
|
|
+ parameter Fifo3WriteLsbAddr = 12'h140+12'h24,
|
|
|
+ parameter Fifo3WriteMsbAddr = 12'h140+12'h26,
|
|
|
+ parameter Fifo4WriteLsbAddr = 12'h190+12'h24,
|
|
|
+ parameter Fifo4WriteMsbAddr = 12'h190+12'h26,
|
|
|
+ parameter Fifo5WriteLsbAddr = 12'h1e0+12'h24,
|
|
|
+ parameter Fifo5WriteMsbAddr = 12'h1e0+12'h26,
|
|
|
+ parameter Fifo6WriteLsbAddr = 12'h230+12'h24,
|
|
|
+ parameter Fifo6WriteMsbAddr = 12'h230+12'h26
|
|
|
)
|
|
|
(
|
|
|
input Clk_i,
|
|
|
@@ -100,6 +100,7 @@ always @(posedge Clk_i or posedge Rst_i) begin
|
|
|
Fifo2WriteLsbAddr: begin
|
|
|
ToFifoVal_o[2] <= 1'b0;
|
|
|
ToFifoData_o[CmdRegWidth*4+:CmdRegWidth] <= SmcData_i;
|
|
|
+ end
|
|
|
Fifo2WriteMsbAddr: begin
|
|
|
ToFifoVal_o[2] <= SmcVal_i;
|
|
|
ToFifoVal_o[3] <= 1'b0;
|
|
|
@@ -120,6 +121,7 @@ always @(posedge Clk_i or posedge Rst_i) begin
|
|
|
Fifo5WriteLsbAddr: begin
|
|
|
ToFifoVal_o[5] <= 1'b0;
|
|
|
ToFifoData_o[CmdRegWidth*10+:CmdRegWidth] <= SmcData_i;
|
|
|
+ end
|
|
|
Fifo5WriteMsbAddr: begin
|
|
|
ToFifoVal_o[5] <= SmcVal_i;
|
|
|
ToFifoVal_o[6] <= 1'b0;
|