diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-09-17 20:38:03 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-09-18 00:43:38 +0200 |
commit | 2cc1256ce7aab8637d82d91506cdeb73d42604b2 (patch) | |
tree | 43333d0d771fbf695eb07f64fb0a710d07369c9f /picosoc/picosoc.v | |
parent | 506cda5ee65d3271c3406ecc756f85cedfbeeef6 (diff) | |
download | picorv32-2cc1256ce7aab8637d82d91506cdeb73d42604b2.tar.gz picorv32-2cc1256ce7aab8637d82d91506cdeb73d42604b2.zip |
Improve PicoSoC demo firmware
Diffstat (limited to 'picosoc/picosoc.v')
-rw-r--r-- | picosoc/picosoc.v | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/picosoc/picosoc.v b/picosoc/picosoc.v index 116b237..1a93c3a 100644 --- a/picosoc/picosoc.v +++ b/picosoc/picosoc.v @@ -72,13 +72,13 @@ module picosoc ( assign iomem_addr = mem_addr; assign iomem_wdata = mem_wdata; - wire spimemio_cfgreg_sel = (mem_addr == 32'h 0200_0000); + wire spimemio_cfgreg_sel = mem_valid && (mem_addr == 32'h 0200_0000); wire [31:0] spimemio_cfgreg_do; - wire simpleuart_reg_div_sel = (mem_addr == 32'h 0200_0004); + wire simpleuart_reg_div_sel = mem_valid && (mem_addr == 32'h 0200_0004); wire [31:0] simpleuart_reg_div_do; - wire simpleuart_reg_dat_sel = (mem_addr == 32'h 0200_0008); + wire simpleuart_reg_dat_sel = mem_valid && (mem_addr == 32'h 0200_0008); wire [31:0] simpleuart_reg_dat_do; wire simpleuart_reg_dat_wait; |