Advertisement
aidanozo

Untitled

Nov 20th, 2024
671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module sol_opregister(
  2.     output wire [3:0] o_w_out,
  3.     input wire i_w_clk,
  4.     input wire i_w_reset,
  5.     input wire [3:0] i_w_data,
  6.     input wire i_w_we,
  7.     input wire i_w_oe,
  8.     input wire [1:0] i_w_opsel
  9. );
  10.  
  11.     wire [3:0] l_w_opsel;
  12.  
  13.     assign l_w_opsel = (i_w_opsel == 2'b00) ? 4'd`OP0 :
  14.         (i_w_opsel == 2'b01) ? 4'd`OP1 :
  15.         (i_w_opsel == 2'b10) ? 4'd`OP2 :
  16.         4'd`OP3;
  17.  
  18.     full_opregister l_m_f_opr(
  19.         .o_w_out(o_w_out),
  20.         .i_w_clk(i_w_clk),
  21.         .i_w_reset(i_w_reset),
  22.         .i_w_data(i_w_data),
  23.         .i_w_we(i_w_we),
  24.         .i_w_oe(i_w_oe),
  25.         .i_w_opsel(l_w_opsel)
  26.     );
  27.  
  28. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement