mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
Fixing old WIP typo bug
This commit is contained in:
parent
818ad00d3c
commit
d8b44971b5
@ -62,12 +62,12 @@ module oh_fifo_sync
|
||||
// FIFO Control
|
||||
//#########################################################
|
||||
|
||||
assign fifo_read = rd_en & ~rd_empty;
|
||||
assign fifo_write = wr_en & ~wr_full;
|
||||
assign almost_full = (wr_count[AW-1:0] == PROGFULL);
|
||||
assign ptr_match = (wr_addr[AW-1:0] == rd_addr[AW-1:0]);
|
||||
assign full = ptr_match & (wr_addr[AW]==!rd_addr[AW]);
|
||||
assign fifo_empty = ptr_match & (wr_addr[AW]==rd_addr[AW]);
|
||||
assign fifo_read = rd_en & ~rd_empty;
|
||||
assign fifo_write = wr_en & ~wr_full;
|
||||
assign wr_almost_full = (wr_count[AW-1:0] == PROGFULL);
|
||||
assign ptr_match = (wr_addr[AW-1:0] == rd_addr[AW-1:0]);
|
||||
assign wr_full = ptr_match & (wr_addr[AW]==!rd_addr[AW]);
|
||||
assign rd_empty = ptr_match & (wr_addr[AW]==rd_addr[AW]);
|
||||
|
||||
always @ (posedge clk or negedge nreset)
|
||||
if(~nreset)
|
||||
|
@ -7,10 +7,10 @@
|
||||
|
||||
module oh_mux4 #(parameter N = 1 ) // width of mux
|
||||
(
|
||||
input sel3,
|
||||
input sel2,
|
||||
input sel1,
|
||||
input sel0,
|
||||
input sel3,
|
||||
input sel2,
|
||||
input sel1,
|
||||
input sel0,
|
||||
input [N-1:0] in3,
|
||||
input [N-1:0] in2,
|
||||
input [N-1:0] in1,
|
||||
@ -19,9 +19,9 @@ module oh_mux4 #(parameter N = 1 ) // width of mux
|
||||
);
|
||||
|
||||
assign out[N-1:0] = ({(N){sel0}} & in0[N-1:0] |
|
||||
{(N){sel1}} & in1[N-1:0] |
|
||||
{(N){sel2}} & in2[N-1:0] |
|
||||
{(N){sel3}} & in3[N-1:0]);
|
||||
{(N){sel1}} & in1[N-1:0] |
|
||||
{(N){sel2}} & in2[N-1:0] |
|
||||
{(N){sel3}} & in3[N-1:0]);
|
||||
|
||||
`ifdef TARGET_SIM
|
||||
wire error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user