Skip to content
Snippets Groups Projects

Mux: Fixed cmd portwidth

Merged Sigrid Scherl requested to merge update into master
1 file
+ 8
8
Compare changes
  • Side-by-side
  • Inline
@@ -19,7 +19,7 @@ module MightypixMux #(
input logic [29:0] WordFromDetector,
input logic [2:0] cmd_decoded,
input logic [1:0] cmd_decoded,
input logic [11:0] BXIDfromTSGen,
@@ -40,18 +40,18 @@ module MightypixMux #(
else if(timer == 0 && Cnt8 == POSEDGE_CNT8) begin
case(cmd_decoded)
3'b001:
2'b01:
begin
datawordOut_reg <= {BXIDfromTSGen[11:0],SYNCPATTERN};
end
3'b010:
//TODO: Remove align word
2'b10:
begin
datawordOut_reg <= 30'h3F_55_55_55; //temporary
//datawordOut_reg <= {6'b11_1111,24'b0};
end
3'b000:
2'b00:
begin
datawordOut_reg <= WordFromDetector;
end
@@ -71,9 +71,9 @@ module MightypixMux #(
Scr_en <= 1;
else if(timer == 0 && Cnt8 == 7)
case(cmd_decoded)
CMD_sync: Scr_en <= 1;
CMD_align: Scr_en <= 1;
CMD_default: Scr_en <= 1;
2'b01: Scr_en <= 1;
2'b10: Scr_en <= 1;
2'b00: Scr_en <= 1;
default: Scr_en <= 1;
endcase
end
Loading